length.js (948B)
1 // Copyright (C) 2021 Jamie Kyle. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 esid: sec-object.hasown 6 description: > 7 Object.hasOwn.length is 2. 8 info: | 9 Object.hasOwn ( _O_, _P_ ) 10 11 ECMAScript Standard Built-in Objects 12 13 Every built-in function object, including constructors, has a "length" 14 property whose value is an integer. Unless otherwise specified, this 15 value is equal to the largest number of named arguments shown in the 16 subclause headings for the function description. 17 18 Unless otherwise specified, the "length" property of a built-in Function 19 object has the attributes { [[Writable]]: false, [[Enumerable]]: false, 20 [[Configurable]]: true }. 21 includes: [propertyHelper.js] 22 author: Jamie Kyle 23 features: [Object.hasOwn] 24 ---*/ 25 26 verifyProperty(Object.hasOwn, "length", { 27 value: 2, 28 writable: false, 29 enumerable: false, 30 configurable: true, 31 }); 32 33 reportCompare(0, 0);