Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/JSON/stringify/15.12.3-6-a-2.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-2
6 description: >
7 JSON.stringify truccates non-integer numeric space arguments to
8 their integer part.
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, 5.99999), JSON.stringify(obj, null, 5), 'JSON.stringify(obj,null, 5.99999)');