builtin.js (1349B)
1 // Copyright (C) 2022 Igalia, S.L. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 esid: sec-array.fromasync 6 description: Array.fromAsync meets the requirements for built-in objects 7 info: | 8 Unless specified otherwise, a built-in object that is callable as a function 9 is a built-in function object with the characteristics described in 10.3. 10 Unless specified otherwise, the [[Extensible]] internal slot of a built-in 11 object initially has the value *true*. 12 13 Unless otherwise specified every built-in function and every built-in 14 constructor has the Function prototype object, which is the initial value of 15 the expression Function.prototype (20.2.3), as the value of its [[Prototype]] 16 internal slot. 17 18 Built-in functions that are not constructors do not have a "prototype" 19 property unless otherwise specified in the description of a particular 20 function. 21 features: [Array.fromAsync] 22 ---*/ 23 24 assert(Object.isExtensible(Array.fromAsync), "Array.fromAsync is extensible"); 25 26 assert.sameValue( 27 Object.getPrototypeOf(Array.fromAsync), 28 Function.prototype, 29 "Prototype of Array.fromAsync is Function.prototype" 30 ); 31 32 assert.sameValue( 33 Object.getOwnPropertyDescriptor(Array.fromAsync, "prototype"), 34 undefined, 35 "Array.fromAsync has no own prototype property" 36 ); 37 38 reportCompare(0, 0);