--frozen-intrinsics
稳定性: 1 - 实验性
启用实验性的冻结内置对象,如 Array 和 Object。
【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.】
为了允许添加填充,--require 和 --import 都会在冻结内置对象之前运行。
【To allow polyfills to be added,
--require and --import both run before freezing intrinsics.】