length.js (1173B)
1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally 2 // Copyright (C) 2020 Igalia, S.L. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 /*--- 6 esid: sec-temporal.plaindate.compare 7 description: Temporal.PlainDate.compare.length is 2 8 info: | 9 Every built-in function object, including constructors, has a "length" property whose value is 10 an integer. Unless otherwise specified, this value is equal to the largest number of named 11 arguments shown in the subclause headings for the function description. Optional parameters 12 (which are indicated with brackets: [ ]) or rest parameters (which are shown using the form 13 «...name») are not included in the default argument count. 14 15 Unless otherwise specified, the "length" property of a built-in function object has the 16 attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }. 17 includes: [propertyHelper.js] 18 features: [Temporal] 19 ---*/ 20 21 verifyProperty(Temporal.PlainDate.compare, "length", { 22 value: 2, 23 writable: false, 24 enumerable: false, 25 configurable: true, 26 }); 27 28 reportCompare(0, 0);