blob: 8e81236a6cc662b0101981e0d1fbe8984475e8d4 [file] [log] [blame] [edit]
//@ requireOptions("--useRecursiveJSONParse=0")
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
var string = '[{},{},{},{}]';
shouldBe(JSON.stringify(JSON.parse(string)), `[{},{},{},{}]`);
var string = '[[],[],[],[]]';
shouldBe(JSON.stringify(JSON.parse(string)), `[[],[],[],[]]`);