Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/JSON/stringify/15.12.3-6-a-1.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 /*---
5 es5id: 15.12.3-6-a-1
6 description: >
7 JSON.stringify treats numeric space arguments greater than 10 the
8 same as a space argument of 10.
9 ---*/
10
11 var obj = {
12 a1: {
13 b1: [1, 2, 3, 4],
14 b2: {
15 c1: 1,
16 c2: 2
17 }
18 },
19 a2: 'a2'
20 };
21
22 assert.sameValue(JSON.stringify(obj, null, 10), JSON.stringify(obj, null, 100), 'JSON.stringify(obj,null, 10)');