man node在和声标志上输入以下内容:
--harmony_typeof (enable harmony semantics for typeof) type: bool default: false --harmony_scoping (enable harmony block scoping) type: bool default: false --harmony_modules (enable harmony modules (implies block scoping)) type: bool default: false --harmony_proxies (enable harmony proxies) type: bool default: false --harmony_collections (enable harmony collections (sets, maps, andweak maps)) type: bool default: false --harmony (enable all harmony features (except typeof)) type: bool default: false
因此
--harmony,启用所有和谐功能(例如
--harmony_scoping,
--harmony_proxies等)的捷径是本博客文章中的一种,看来和谐启用了该语言的ECMAscript
6新功能。文件无法和谐运行的原因
app.js是可能使用了新ECMAscript 6标准的非向后兼容功能(例如块范围,代理,集合,地图等)。



