Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1702)

Unified Diff: test/webkit/fast/js/JSON-parse-reviver.js

Issue 1506933003: JSON.parse: properly deal with reviver result (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/mjsunit.status ('k') | test/webkit/fast/js/JSON-parse-reviver-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/webkit/fast/js/JSON-parse-reviver.js
diff --git a/test/webkit/fast/js/JSON-parse-reviver.js b/test/webkit/fast/js/JSON-parse-reviver.js
index 1f04602ee9ce8ee39932c5b07b5c8256f6153fc0..7634031232703013bfca1037a872ade6a137bfe8 100644
--- a/test/webkit/fast/js/JSON-parse-reviver.js
+++ b/test/webkit/fast/js/JSON-parse-reviver.js
@@ -75,12 +75,13 @@ function arrayReviver(i,v) {
debug("");
debug("Ensure that when visiting a deleted property value is undefined");
shouldBeUndefined("value");
+ this.length = 3;
v = "undelete the property";
- expectedLength = this.length = 3;
+ expectedLength = 4;
break;
case 4:
- if (this.length != 3) {
+ if (this.length != 4) {
testFailed("Did not call reviver for deleted property");
expectedLength = this.length = 3;
break;
« no previous file with comments | « test/mjsunit/mjsunit.status ('k') | test/webkit/fast/js/JSON-parse-reviver-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698