| 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-8-a-4 |
| 6 |
description: > |
| 7 |
JSON.stringify treats an Boolean wrapper space argument the same |
| 8 |
as a missing space argument. |
| 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), JSON.stringify(obj, null, new Boolean(true)), 'JSON.stringify(obj)'); |