length.js (1011B)
1 // Copyright (C) 2024 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-built-in-function-objects 6 description: > 7 JSON.isRawJSON.length value and descriptor. 8 info: | 9 Every built-in function object, including constructors, has a *"length"* 10 property whose value is a non-negative integral Number. Unless otherwise 11 specified, this value is the number of required parameters shown in the 12 subclause heading for the function description. Optional parameters and rest 13 parameters are not included in the parameter count. 14 15 Unless otherwise specified, the *"length"* property of a built-in function 16 object has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, 17 [[Configurable]]: *true* }. 18 includes: [propertyHelper.js] 19 features: [json-parse-with-source] 20 ---*/ 21 22 verifyProperty(JSON.isRawJSON, 'length', { 23 value: 1, 24 writable: false, 25 enumerable: false, 26 configurable: true 27 }); 28 29 reportCompare(0, 0);