browser.js |
|
0 |
construct-this-with-the-number-of-arguments.js |
---
esid: sec-array.of
es6id: 22.1.2.3
description: Passes the number of arguments to the constructor it calls.
info: |
Array.of ( ...items )
1. Let len be the actual number of arguments passed to this function.
2. Let items be the List of arguments passed to this function.
3. Let C be the this value.
4. If IsConstructor(C) is true, then
a. Let A be Construct(C, «len»).
...
--- |
1136 |
creates-a-new-array-from-arguments.js |
---
esid: sec-array.of
es6id: 22.1.2.3
description: >
Array.of method creates a new Array with a variable number of arguments.
info: |
22.1.2.3 Array.of ( ...items )
...
7. Let k be 0.
8. Repeat, while k < len
a. Let kValue be items[k].
b. Let Pk be ToString(k).
c. Let defineStatus be CreateDataPropertyOrThrow(A,Pk, kValue).
d. ReturnIfAbrupt(defineStatus).
e. Increase k by 1.
9. Let setStatus be Set(A, "length", len, true).
10. ReturnIfAbrupt(setStatus).
11. Return A.
--- |
1648 |
does-not-use-prototype-properties.js |
---
esid: sec-array.of
es6id: 22.1.2.3
description: Array.of does not use prototype properties for arguments.
info: |
It defines elements rather than assigning to them.
--- |
899 |
does-not-use-set-for-indices.js |
---
esid: sec-array.of
description: >
Non-writable properties are overwritten by CreateDataProperty.
(result object's "0" is non-writable)
info: |
Array.of ( ...items )
[...]
7. Repeat, while k < len
[...]
c. Perform ? CreateDataPropertyOrThrow(A, Pk, kValue).
[...]
includes: [propertyHelper.js]
--- |
772 |
length.js |
---
esid: sec-array.of
description: >
Array.of.length value and property descriptor
info: |
Array.of ( ...items )
The length property of the of function is 0.
includes: [propertyHelper.js]
--- |
479 |
name.js |
---
esid: sec-array.of
description: >
Array.of.name value and property descriptor
info: |
Array.of ( ...items )
17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js]
--- |
474 |
not-a-constructor.js |
---
esid: sec-ecmascript-standard-built-in-objects
description: >
Array.of does not implement [[Construct]], is not new-able
info: |
ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js]
features: [Reflect.construct, arrow-function]
--- |
905 |
of.js |
---
esid: sec-array.of
description: >
Array.of property descriptor
info: |
Array.of ( ...items )
17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js]
--- |
438 |
proto-from-ctor-realm.js |
---
esid: sec-array.of
description: Default [[Prototype]] value derived from realm of the constructor
info: |
[...]
4. If IsConstructor(C) is true, then
a. Let A be ? Construct(C, « len »).
[...]
9.1.14 GetPrototypeFromConstructor
[...]
3. Let proto be ? Get(constructor, "prototype").
4. If Type(proto) is not Object, then
a. Let realm be ? GetFunctionRealm(constructor).
b. Let proto be realm's intrinsic object named intrinsicDefaultProto.
[...]
features: [cross-realm]
--- |
984 |
return-a-custom-instance.js |
---
esid: sec-array.of
description: >
Returns an instance from a custom constructor.
info: |
Array.of ( ...items )
...
4. If IsConstructor(C) is true, then
a. Let A be Construct(C, «len»).
...
11. Return A.
--- |
931 |
return-a-new-array-object.js |
---
esid: sec-array.of
description: >
Returns a new Array.
info: |
Array.of ( ...items )
1. Let len be the actual number of arguments passed to this function.
2. Let items be the List of arguments passed to this function.
3. Let C be the this value.
4. If IsConstructor(C) is true, then
a. Let A be Construct(C, «len»).
5. Else,
b. Let A be ArrayCreate(len).
...
11. Return A.
--- |
1175 |
return-abrupt-from-contructor.js |
---
esid: sec-array.of
description: >
Return abrupt from this' constructor
info: |
Array.of ( ...items )
1. Let len be the actual number of arguments passed to this function.
2. Let items be the List of arguments passed to this function.
3. Let C be the this value.
4. If IsConstructor(C) is true, then
a. Let A be Construct(C, «len»).
5. Else,
b. Let A be ArrayCreate(len).
6. ReturnIfAbrupt(A).
...
--- |
762 |
return-abrupt-from-data-property-using-proxy.js |
---
esid: sec-array.of
description: >
Return abrupt from Data Property creation
info: |
Array.of ( ...items )
...
7. Let k be 0.
8. Repeat, while k < len
a. Let kValue be items[k].
b. Let Pk be ToString(k).
c. Let defineStatus be CreateDataPropertyOrThrow(A,Pk, kValue).
d. ReturnIfAbrupt(defineStatus).
...
7.3.6 CreateDataPropertyOrThrow (O, P, V)
...
3. Let success be CreateDataProperty(O, P, V).
4. ReturnIfAbrupt(success).
...
features: [Proxy]
--- |
912 |
return-abrupt-from-data-property.js |
---
esid: sec-array.of
description: >
Return abrupt from Data Property creation
info: |
Array.of ( ...items )
...
7. Let k be 0.
8. Repeat, while k < len
a. Let kValue be items[k].
b. Let Pk be ToString(k).
c. Let defineStatus be CreateDataPropertyOrThrow(A,Pk, kValue).
d. ReturnIfAbrupt(defineStatus).
...
7.3.6 CreateDataPropertyOrThrow (O, P, V)
...
3. Let success be CreateDataProperty(O, P, V).
4. ReturnIfAbrupt(success).
5. If success is false, throw a TypeError exception.
...
--- |
1131 |
return-abrupt-from-setting-length.js |
---
esid: sec-array.of
description: >
Return abrupt from setting the length property.
info: |
Array.of ( ...items )
...
9. Let setStatus be Set(A, "length", len, true).
10. ReturnIfAbrupt(setStatus).
...
--- |
629 |
sets-length.js |
---
esid: sec-array.of
description: >
Calls the length setter if available
info: |
Array.of ( ...items )
...
9. Let setStatus be Set(A, "length", len, true).
...
--- |
852 |
shell.js |
|
0 |