6.1.7.4 熟悉的内在 Objects
熟悉的内在函数是由本规范的算法明确引用并且通常具有领域特定的身份的内置对象。 除非另有说明,每个内在对象实际上对应于一组相似的对象,每个领域一个。
在本规范中,诸如 %name% 之类的引用意味着与当前领域相关联的与名称相对应的内在对象。 8.3 中描述了当前领域及其内在性的确定。熟悉的内在性在图表 7 中列出。
图表7:熟悉的内在Objects
| 内在性名称(Intrinsic Name) | 全局名称(Global Name) | ECMAScript 语言集合(ECMAScript Language Association) |
|---|---|---|
| %Array% | Array | Array 构造函数(22.1.1) |
| %ArrayBuffer% | ArrayBuffer | ArrayBuffer 构造函数(24.1.2) |
| %ArrayBufferPrototype% | ArrayBuffer.prototype | %ArrayBuffer% 的 prototype 数据属性的初始值 |
| %ArrayIteratorPrototype% | Array 迭代器对象的原型(22.1.5) | |
| %ArrayPrototype% | Array.prototype | %Array% 的 prototype 数据属性的初始值(22.1.3) |
| %ArrayProto_values% | Array.prototype.values | %ArrayBuffer% 的 values 数据属性的初始值(22.1.3.30) |
| %Boolean% | Boolean | Boolean 构造函数(19.3.1) |
| %BooleanPrototype% | Boolean.prototype | %Boolean% 的 prototype 数据属性的初始值(19.3.3) |
| %DataView% | DataView | DataView 构造函数(24.2.2) |
| %DataViewPrototype% | DataView.prototype | %DataView% 的 prototype 数据属性的初始值 |
| %Date% | Date | Date 构造函数(20.3.2) |
| %DatePrototype% | Date.prototype | %Data% 的 prototype 数据属性的初始值 |
| %decodeURI% | decodeURI | decodeURI 函数(18.2.6.2) |
| %decodeURIComponent% | decodeURIComponent | decodeURIComponent 函数(18.2.6.3) |
| %encodeURI% | encodeURI | encodeURI 函数(18.2.6.4) |
| %encodeURIComponent% | encodeURIComponent | encodeURIComponent 函数(18.2.6.5) |
| %Error% | Error | Error 函数(19.5.1) |
| %ErrorPrototype% | Error.prototype | %Error% 的 prototype 数据属性的初始值 |
| %eval% | eval | eval 函数(18.2.1) |
| %EvalError% | EvalError | EvalError 构造函数(19.5.5.1) |
| %EvalErrorPrototype% | EvalError.prototype | %EvalError% 的 prototype 数据属性的初始值 |
| %Float32Array% | Float32Array | Float32Array 构造函数(22.2) |
| %Float32ArrayPrototype% | Float32Array.prototype | %Float32Array% 的 prototype 数据属性的初始值 |
| %Float64Array% | Float64Array | Float64Array 构造函数(22.2) |
| %Float64ArrayPrototype% | Float64Array.prototype | %Float64Array% 的 prototype 数据属性的初始值 |
| %Function% | Function | Function 构造函数(19.2.1) |
| %FunctionPrototype% | Function.prototype | %Function% 的 prototype 数据属性的初始值 |
| %Generator% | %GeneratorFunction% 的 prototype 数据属性的初始值 | |
| %GeneratorFunction% | generator 对象的构造函数(25.2.1) | |
| %GeneratorPrototype% | %Generator% 的 prototype 数据属性的初始值 | |
| %AsyncFunction% | 异步函数对象的构造函数(25.5.1) | |
| %Int8Array% | Int8Array | Int8Array 构造函数(22.2) |
| %Int8ArrayPrototype% | Int8Array.prototype | %Int8Array% 的 prototype 数据属性的初始值 |
| %Int16Array% | Int16Array | Int16Array 构造函数(22.2) |
| %Int16ArrayPrototype% | Int16Array.prototype | %Int16Array% 的 prototype 数据属性的初始值 |
| %Int32Array% | Int32Array | Int32Array 构造函数(22.2) |
| %Int32ArrayPrototype% | Int32Array.prototype | %Int32Array% 的 prototype 数据属性的初始值 |
| %isFinite% | isFinite | isFinite 函数(18.2.2) |
| %isNaN% | isNaN | isNaN 函数(18.2.3) |
| %IteratorPrototype% | 所有标准内置迭代器对象间接继承的对象 | |
| %JSON% | JSON | JSON 对象(24.3) |
| %Map% | Map | Map 构造函数(23.1.1) |
| %MapIteratorPrototype% | Map 迭代器对象的原型(23.1.5) | |
| %MapPrototype% | Map.prototype | %Map% 的 prototype 数据属性的初始值 |
| %Math% | Math | Math 对象(20.2) |
| %Number% | Number | Number 构造函数(20.1.1) |
| %NumberPrototype% | Number.prototype | %Number% 的 prototype 数据属性的初始值 |
| %Object% | Object | Object 构造函数(19.1.1) |
| %ObjectPrototype% | Object.prototype | %Object% 的 prototype 数据属性的初始值(19.1.3) |
| %ObjProto_toString% | Object.prototype.toString | %Object% 的 toString 数据属性的初始值(19.1.3.6) |
| %ObjProto_valueOf% | Object.prototype.valueOf | %Object% 的 toValue 数据属性的初始值(19.1.3.7) |
| %parseFloat% | parseFloat | parseFloat 函数(18.2.4) |
| %parseInt% | parseInt | parseInt 函数(18.2.5) |
| %Promise% | Promise | Promise 构造函数(25.4.3) |
| %PromisePrototype% | Promise.prototype | %Promise% 的 prototype 数据属性的初始值 |
| %Proxy% | Proxy | Proxy 构造函数(26.2.1) |
| %RangeError% | RangeError | RangeError 构造函数(19.5.5.2) |
| %RangeErrorPrototype% | RangeError.prototype | %RangeError% 的 prototype 数据属性的初始值 |
| %ReferenceError% | ReferenceError | ReferenceError 构造函数(19.5.5.3) |
| %ReferenceErrorPrototype% | ReferenceError.prototype | %ReferenceError% 的 prototype 数据属性的初始值 |
| %Reflect% | Reflect | Reflect 对象(26.1) |
| %RegExp% | RegExp | RegExp 构造函数(21.2.3) |
| %RegExpPrototype% | RegExp.prototype | %RegExp% 的 prototype 数据属性的初始值 |
| %Set% | Set | Set 构造函数(23.2.1) |
| %SetIteratorPrototype% | Set 迭代器对象的原型 | |
| %SetPrototype% | Set.prototype | %Set% 的 prototype 数据属性的初始值 |
| %String% | String | String 构造函数(21.1.1) |
| %StringIteratorPrototype% | String 迭代器对象的原型(21.1.5) | |
| %StringPrototype% | String.prototype | %String% 的 prototype 数据属性的初始值 |
| %Symbol% | Symbol | Symbol 构造函数(19.4.1) |
| %SymbolPrototype% | Symbol.prototype | %Symbol% 的 prototype 数据属性的初始值 |
| %SyntaxError% | SyntaxError | SyntaxError 构造函数(19.5.5.4) |
| %SyntaxErrorPrototype% | SyntaxError.prototype | %SyntaxError% 的 prototype 数据属性的初始值 |
| %ThrowTypeError% | 一个函数对象,无条件地抛出一个新的实例 %TypeError% | |
| %TypedArray% | 所有类型的 Array 构造函数的超类(22.2.1) | |
| %TypedArrayPrototype% | %TypedArray% 的 prototype 数据属性的初始值 | |
| %TypeError% | TypeError | TypeError 构造函数(19.5.5.5) |
| %TypeErrorPrototype% | TypeError.prototype | %TypeError% 的 prototype 数据属性的初始值 |
| %Uint8Array% | Uint8Array | Uint8Array 构造函数(22.2) |
| %Uint8ArrayPrototype% | Uint8Array.prototype | %Uint8Array% 的 prototype 数据属性的初始值 |
| %Uint8ClampedArray% | Uint8ClampedArray | Uint8ClampedArray 构造函数(22.2) |
| %Uint8ClampedArrayPrototype% | Uint8ClampedArray.prototype | %Uint8ClampedArray% 的 prototype 数据属性的初始值 |
| %Uint16Array% | Uint16Array | Uint16Array 构造函数(22.2) |
| %Uint16ArrayPrototype% | Uint16Array.prototype | %Uint16Array % 的 prototype 数据属性的初始值 |
| %Uint32Array% | Uint32Array | Uint32Array 构造函数(22.2) |
| %Uint32ArrayPrototype% | Uint32Array.prototype | %Uint32Array% 的 prototype 数据属性的初始值 |
| %URIError% | URIError | URIError 构造函数(19.5.5.6) |
| %URIErrorPrototype% | URIError.prototype | %URIError% 的 prototype 数据属性的初始值 |
| %WeakMap% | WeakMap | WeakMap 构造函数(23.3.1) |
| %WeakMapPrototype% | WeakMap.prototype | %WeakMap% 的 prototype 数据属性的初始值 |
| %WeakSet% | WeakSet | WeakSet 构造函数(23.4.1) |
| %WeakSetPrototype% | WeakSet.prototype | %WeakSet% 的 prototype 数据属性的初始值 |