gpt4 book ai didi

node.js - 如何启用所有 node.js 和谐 "in progress"功能?

转载 作者:搜寻专家 更新时间:2023-11-01 00:41:11 25 4
gpt4 key购买 nike

node --v8-options | grep harmony
--es_staging (enable all completed harmony features)
--harmony (enable all completed harmony features)
--harmony_shipping (enable all shipped harmony fetaures)
--harmony_modules (enable "harmony modules" (in progress))
--harmony_regexps (enable "harmony regular expression extensions" (in progress))
--harmony_proxies (enable "harmony proxies" (in progress))
--harmony_sloppy_function (enable "harmony sloppy function block scoping" (in progress))
--harmony_sloppy_let (enable "harmony let 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_default_parameters (enable "harmony default parameters" (in progress))
--harmony_sharedarraybuffer (enable "harmony sharedarraybuffer" (in progress))
--harmony_atomics (enable "harmony atomics" (in progress))
--harmony_simd (enable "harmony simd" (in progress))
--harmony_array_includes (enable "harmony Array.prototype.includes")
--harmony_tostring (enable "harmony toString")
--harmony_concat_spreadable (enable "harmony isConcatSpreadable")
--harmony_rest_parameters (enable "harmony rest parameters")
--harmony_sloppy (enable "harmony features in sloppy mode")
--harmony_arrow_functions (enable "harmony arrow functions")
--harmony_new_target (enable "harmony new.target")
--harmony_object_observe (enable "harmony Object.observe")
--harmony_spreadcalls (enable "harmony spread-calls")
--harmony_spread_arrays (enable "harmony spread in array literals")
--harmony_object (enable "harmony Object methods")

附带许多默认情况下禁用的功能(因为它们仍在开发中或处于暂存阶段)。 --harmony 标志启用所有已完成的功能。

如何启用所有“进行中”的功能?

最佳答案

您可以查看当前正在“进行中”的标志

node --v8-options | grep "in progress"

这篇文章的输出看起来像

--harmony_modules (enable "harmony modules" (in progress))
--harmony_array_includes (enable "harmony Array.prototype.includes" (in progress))
// ...
// (I've removed the other lines, which look like the above)

因此您可以轻松地解析它以满足您的需要。

关于主题:https://nodejs.org/en/docs/es6/#which-features-are-in-progress

关于node.js - 如何启用所有 node.js 和谐 "in progress"功能?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33997211/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com