Index: test/mjsunit/json.js |
diff --git a/test/mjsunit/json.js b/test/mjsunit/json.js |
index 44548e4c13e90ac6e297eedae20b5d8064ae34c6..3652febc3c41d8b9c7fb217fdafb8c0c53a8c345 100644 |
--- a/test/mjsunit/json.js |
+++ b/test/mjsunit/json.js |
@@ -520,3 +520,6 @@ reviver = function(p, v) { |
return p === "" ? v : 42; |
} |
assertEquals({a: 0, b: 1}, JSON.parse('{"a":0,"b":1}', reviver)); |
+ |
+reviver = (k, v) => (v === Infinity) ? "inf" : v; |
+assertEquals('{"":"inf"}', JSON.stringify({"":Infinity}, reviver)); |