| OLD | NEW |
| 1 function (jsonObject){ | 1 function (jsonObject){ |
| 2 return jsonObject.stringify(1); | 2 return jsonObject.stringify(1); |
| 3 } | 3 } |
| 4 PASS tests[i](nativeJSON) is tests[i](JSON) | 4 PASS tests[i](nativeJSON) is tests[i](JSON) |
| 5 function (jsonObject){ | 5 function (jsonObject){ |
| 6 return jsonObject.stringify(1.5); | 6 return jsonObject.stringify(1.5); |
| 7 } | 7 } |
| 8 PASS tests[i](nativeJSON) is tests[i](JSON) | 8 PASS tests[i](nativeJSON) is tests[i](JSON) |
| 9 function (jsonObject){ | 9 function (jsonObject){ |
| 10 return jsonObject.stringify(-1); | 10 return jsonObject.stringify(-1); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 return jsonObject.stringify(false); | 76 return jsonObject.stringify(false); |
| 77 } | 77 } |
| 78 PASS tests[i](nativeJSON) is tests[i](JSON) | 78 PASS tests[i](nativeJSON) is tests[i](JSON) |
| 79 function (jsonObject){ | 79 function (jsonObject){ |
| 80 return jsonObject.stringify(new Date(0)); | 80 return jsonObject.stringify(new Date(0)); |
| 81 } | 81 } |
| 82 PASS tests[i](nativeJSON) is tests[i](JSON) | 82 PASS tests[i](nativeJSON) is tests[i](JSON) |
| 83 function (jsonObject){ | 83 function (jsonObject){ |
| 84 return jsonObject.stringify({toJSON: Date.prototype.toJSON}); | 84 return jsonObject.stringify({toJSON: Date.prototype.toJSON}); |
| 85 } | 85 } |
| 86 PASS tests[i](nativeJSON) threw exception TypeError: jsonObject.stringify is not
a function. | 86 PASS tests[i](nativeJSON) threw exception TypeError: (var).toISOString is not a
function. |
| 87 function (jsonObject){ | 87 function (jsonObject){ |
| 88 return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString:
function(){ return "custom toISOString"; }}); | 88 return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString:
function(){ return "custom toISOString"; }}); |
| 89 } | 89 } |
| 90 PASS tests[i](nativeJSON) is tests[i](JSON) | 90 PASS tests[i](nativeJSON) is tests[i](JSON) |
| 91 function (jsonObject){ | 91 function (jsonObject){ |
| 92 return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString:
function(){ return {}; }}); | 92 return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString:
function(){ return {}; }}); |
| 93 } | 93 } |
| 94 FAIL tests[i](nativeJSON) should throw an exception. Was {}. | 94 FAIL tests[i](nativeJSON) should throw an exception. Was {}. |
| 95 function (jsonObject){ | 95 function (jsonObject){ |
| 96 return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString:
function(){ throw "An exception"; }}); | 96 return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString:
function(){ throw "An exception"; }}); |
| 97 } | 97 } |
| 98 PASS tests[i](nativeJSON) threw exception An exception. | 98 PASS tests[i](nativeJSON) threw exception An exception. |
| 99 function (jsonObject){ | 99 function (jsonObject){ |
| 100 var d = new Date(0); | 100 var d = new Date(0); |
| 101 d.toISOString = null; | 101 d.toISOString = null; |
| 102 return jsonObject.stringify(d); | 102 return jsonObject.stringify(d); |
| 103 } | 103 } |
| 104 PASS tests[i](nativeJSON) threw exception TypeError: jsonObject.stringify is not
a function. | 104 PASS tests[i](nativeJSON) threw exception TypeError: (var).toISOString is not a
function. |
| 105 function (jsonObject){ | 105 function (jsonObject){ |
| 106 var d = new Date(0); | 106 var d = new Date(0); |
| 107 d.toJSON = undefined; | 107 d.toJSON = undefined; |
| 108 return jsonObject.stringify(d); | 108 return jsonObject.stringify(d); |
| 109 } | 109 } |
| 110 PASS tests[i](nativeJSON) is tests[i](JSON) | 110 PASS tests[i](nativeJSON) is tests[i](JSON) |
| 111 function (jsonObject){ | 111 function (jsonObject){ |
| 112 return jsonObject.stringify({get Foo() { return "bar"; }}); | 112 return jsonObject.stringify({get Foo() { return "bar"; }}); |
| 113 } | 113 } |
| 114 PASS tests[i](nativeJSON) is tests[i](JSON) | 114 PASS tests[i](nativeJSON) is tests[i](JSON) |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 return jsonObject.stringify(toDeepVirtualJSONArray()); | 535 return jsonObject.stringify(toDeepVirtualJSONArray()); |
| 536 } | 536 } |
| 537 function (jsonObject){ | 537 function (jsonObject){ |
| 538 return jsonObject.stringify(fullCharsetString); | 538 return jsonObject.stringify(fullCharsetString); |
| 539 } | 539 } |
| 540 PASS tests[i](nativeJSON) is tests[i](JSON) | 540 PASS tests[i](nativeJSON) is tests[i](JSON) |
| 541 PASS successfullyParsed is true | 541 PASS successfullyParsed is true |
| 542 | 542 |
| 543 TEST COMPLETE | 543 TEST COMPLETE |
| 544 | 544 |
| OLD | NEW |