--frozen-intrinsics


稳定性: 1 - 实验性

启用实验性的冻结内置对象,如 ArrayObject

【Enable experimental frozen intrinsics like Array and Object.】

仅支持根上下文。无法保证 globalThis.Array 确实是默认的内在引用。在此标志下代码可能会出错。

【Only the root context is supported. There is no guarantee that globalThis.Array is indeed the default intrinsic reference. Code may break under this flag.】

为了允许添加 polyfill,--require 会在冻结内建对象之前运行。

【To allow polyfills to be added, --require runs before freezing intrinsics.】