2012-06-09 34 views

回答

19

運行node --v8-options。顯示您可以設置的各種標誌以更改V8的行爲012.g4爲和諧特徵的標誌在那裏顯示:

--harmony_typeof (enable harmony semantics for typeof) 
    type: bool default: false 
--harmony_proxies (enable harmony proxies) 
    type: bool default: false 
--harmony_weakmaps (enable harmony weak maps) 
    type: bool default: false 
--harmony_block_scoping (enable harmony block scoping) 
    type: bool default: false 
+1

node --v8-options | grep -C 1和諧 – shacharz

6

如果從外殼應用--help開關節點,你會得到可用標誌的列表;

node --help 
相關問題