2.1.143 [ECMA-262/6] Section B.2.2 Additional Properties of the Object.prototype Object
V0033: Object.prototype.__proto__.set.name is undefined
The specification states:
-
B.2.2.1.2 set Object.prototype.__proto__ The value of the [[Set]] attribute is a built-in function that takes an argument proto. It performs the following steps: 1. Let O be RequireObjectCoercible(this value). 2. ReturnIfAbrupt(O). 3. If Type(proto) is neither Object nor Null, return undefined. 4. If Type(O) is not Object, return undefined. 5. Let status be O.[[SetPrototypeOf]](proto). 6. ReturnIfAbrupt(status). 7. If status is false, throw a TypeError exception. 8. Return undefined.
All document modes (All versions)
Object.prototype.__proto__.set.name
is undefined. The value of the [[Set]]
attribute
is a built-in function s
that takes an argument proto
. HasOwnProperty(s, "name")
returns false
.
V0032: Object.prototype.__proto__.get.name is undefined
The specification states:
-
B.2.2.1.1 get Object.prototype.__proto__ The value of the [[Get]] attribute is a built-in function that requires no arguments. It performs the following steps: 1. Let O be ToObject(this value). 2. ReturnIfAbrupt(O). 3. Return O.[[GetPrototypeOf]]().
All document modes (All versions)
Object.prototype.__proto__.get.name
is undefined. The value of the [[Get]]
attribute
is a built-in function g
that requires no
arguments. HasOwnProperty(g, "name")
returns false
.