length.js (691B)
1 // Copyright (C) 2012 Ecma International. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 /*--- 4 esid: sec-json.parse 5 description: > 6 JSON.parse.length is 2. 7 info: | 8 JSON.parse ( text [ , reviver ] ) 9 10 The "length" property of the parse function is 2. 11 12 ECMAScript Standard Built-in Objects 13 14 Unless otherwise specified, the length property of a built-in Function 15 object has the attributes { [[Writable]]: false, [[Enumerable]]: false, 16 [[Configurable]]: true }. 17 includes: [propertyHelper.js] 18 ---*/ 19 20 verifyProperty(JSON.parse, 'length', { 21 value: 2, 22 writable: false, 23 enumerable: false, 24 configurable: true, 25 }); 26 27 reportCompare(0, 0);