| Index: test/mjsunit/json.js
|
| ===================================================================
|
| --- test/mjsunit/json.js (revision 5045)
|
| +++ test/mjsunit/json.js (working copy)
|
| @@ -85,7 +85,7 @@
|
| };
|
| assertEquals(null, n4.toJSON());
|
|
|
| -assertEquals(Object.prototype, JSON.__proto__);
|
| +assertTrue(Object.prototype === JSON.__proto__);
|
| assertEquals("[object JSON]", Object.prototype.toString.call(JSON));
|
|
|
| // DontEnum
|
| @@ -313,3 +313,7 @@
|
| var x = 0;
|
| eval("(1); x++; (1)");
|
| TestInvalid('1); x++; (1');
|
| +
|
| +// Test string conversion of argument.
|
| +var o = { toString: function() { return "42"; } };
|
| +assertEquals(42, JSON.parse(o));
|
|
|