Index: test/mjsunit/es6/proxies-json.js |
diff --git a/test/mjsunit/es6/proxies-json.js b/test/mjsunit/es6/proxies-json.js |
index d48d5390f6e803706e4df98e1905e2c0bc805d2d..03dfabecea100ae71ad4d81b1b3a1e94dcd002ba 100644 |
--- a/test/mjsunit/es6/proxies-json.js |
+++ b/test/mjsunit/es6/proxies-json.js |
@@ -35,7 +35,10 @@ function testStringify(expected, object) { |
// Test fast case that bails out to slow case. |
assertEquals(expected, JSON.stringify(object)); |
// Test slow case. |
- assertEquals(expected, JSON.stringify(object, undefined, 0)); |
+ assertEquals(expected, JSON.stringify(object, (key, value) => value)); |
+ // Test gap. |
+ assertEquals(JSON.stringify(object, null, "="), |
+ JSON.stringify(object, (key, value) => value, "=")); |
} |
@@ -67,6 +70,7 @@ testStringify('[1,null]', [1, proxy_fun]); |
var parent1a = { b: proxy1 }; |
testStringify('{"b":{"a":"A","b":"B","c":"C"}}', parent1a); |
+testStringify('{"b":{"a":"A","b":"B","c":"C"}}', parent1a); |
var parent1b = { a: 123, b: proxy1, c: true }; |
testStringify('{"a":123,"b":{"a":"A","b":"B","c":"C"},"c":true}', parent1b); |