nodejs v4中默认参数的和谐标志

我正在使用node.js v4.0.0,并试图让一些代码工作,而不需要先编译它。 虽然大多数工作,我不能使用

import 

这可能是因为没有敲定的阶段,但我也找不到一个标志,使其成为可能。 我已经尝试了所有这些:

 --harmony_modules (enable "harmony modules" (in progress)) --harmony_array_includes (enable "harmony Array.prototype.includes" (in progress)) --harmony_regexps (enable "harmony regular expression extensions" (in progress)) --harmony_proxies (enable "harmony proxies" (in progress)) --harmony_sloppy (enable "harmony features in sloppy mode" (in progress)) --harmony_unicode_regexps (enable "harmony unicode regexps" (in progress)) --harmony_reflect (enable "harmony Reflect API" (in progress)) --harmony_destructuring (enable "harmony destructuring" (in progress)) --harmony_sharedarraybuffer (enable "harmony sharedarraybuffer" (in progress)) --harmony_atomics (enable "harmony atomics" (in progress)) --harmony_new_target (enable "harmony new.target" (in progress)) 

(无用的说,我没有使用它的正则expression式… :))

虽然我得到导入的原因,但我不明白为什么默认参数失败,因为他们似乎是最终确定,我找不到一个标志似乎处理它。

是否有导入和默认参数的标志?

该代码不起作用

 class foo extends bar { constructor(options = {}) .... } 

错误是

意外=非法令牌

节点4使用Chrome 45附带的V8版本 – V8 v4.5.103.3不附带默认参数,即使在标志后面也是如此。 默认参数在Chrome 49附带的V8版本中,并且将在节点6+中。

该标志是: --harmony_default_parameters