Why I can not start harmony mode by “node --harmony test.js” from command line?

怎甘沉沦 提交于 2019-12-02 08:23:45

You're missing 'use strict'; at the top of your test.js (as indicated by the error message).

It works in the REPL because 'use strict'; is automatically included during code evaluation.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!