JavaScript 领域中 [[intrinsics]] 属性 的内容是什么?
What is the contents of the [[intrinsics]] property in a JavaScript realm?
JavaScript 领域中 [[intrinsics]]
属性 的内容是什么?
我已经阅读了一些规范,但无法完全理解其中的描述:
Record whose field names are intrinsic keys and whose values are
objects
规范的相关位:https://people.mozilla.org/~jorendorff/es6-draft.html#sec-code-realms
编辑:内在对象是内置对象吗?比如数字、数组等?
[[intrinsics]]
属性 定义为 here。它由内置对象组成,如 Array
、Number
、Math
、Generator
、NaN
等
里面还有Object.prototype
、Function.prototype
、ThrowTypeError
、属性的定义(不知道是什么,超出表面解释)
JavaScript 领域中 [[intrinsics]]
属性 的内容是什么?
我已经阅读了一些规范,但无法完全理解其中的描述:
Record whose field names are intrinsic keys and whose values are objects
规范的相关位:https://people.mozilla.org/~jorendorff/es6-draft.html#sec-code-realms
编辑:内在对象是内置对象吗?比如数字、数组等?
[[intrinsics]]
属性 定义为 here。它由内置对象组成,如 Array
、Number
、Math
、Generator
、NaN
等
里面还有Object.prototype
、Function.prototype
、ThrowTypeError
、属性的定义(不知道是什么,超出表面解释)