Debian Codegraph @

js/src/tests/test262/built-ins/JSON/stringify/length.js

raw
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.stringify
5 description: >
6 JSON.stringify.length is 3.
7 info: |
8 JSON.stringify ( value [ , replacer [ , space ] ] )
9
10 The "length" property of the stringify function is 3.
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.stringify, 'length', {
21 value: 3,
22 writable: false,
23 enumerable: false,
24 configurable: true,
25 });
26
27 reportCompare(0, 0);