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

Issue 1506933003: JSON.parse: properly deal with reviver result (Closed)

Created:
5 years ago by neis
Modified:
5 years ago
Reviewers:
Yang
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

JSON.parse: properly deal with reviver result When the reviver returns undefined, the property in question must be deleted even for arrays. So far this only happened for non-array objects. Also change the property enumeration to be spec-conformant, which is observable when the reviver modifies its "this" object directly. There are a few further issues that need to be addressed in a separate CL. R=yangguo@chromium.org BUG= Committed: https://crrev.com/a5380fe9ed8eecdda79f709d5a9c4714d97fa623 Cr-Commit-Position: refs/heads/master@{#32750}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Adapt webkit tests, fix enumeration. #

Patch Set 3 : Disable test for interpreter. #

Patch Set 4 : Exclude null... #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -22 lines) Patch
M src/js/json.js View 1 2 3 3 chunks +18 lines, -13 lines 0 comments Download
M src/js/v8natives.js View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M test/mjsunit/json.js View 1 chunk +9 lines, -2 lines 0 comments Download
M test/mjsunit/mjsunit.status View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M test/webkit/fast/js/JSON-parse-reviver.js View 1 1 chunk +3 lines, -2 lines 0 comments Download
M test/webkit/fast/js/JSON-parse-reviver-expected.txt View 1 3 chunks +16 lines, -5 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
neis
5 years ago (2015-12-08 13:54:07 UTC) #1
Yang
https://codereview.chromium.org/1506933003/diff/1/src/js/json.js File src/js/json.js (right): https://codereview.chromium.org/1506933003/diff/1/src/js/json.js#newcode34 src/js/json.js:34: if (IS_ARRAY(val)) { I thought IS_ARRAY is not the ...
5 years ago (2015-12-08 14:21:54 UTC) #2
Yang
On 2015/12/08 14:21:54, Yang wrote: > https://codereview.chromium.org/1506933003/diff/1/src/js/json.js > File src/js/json.js (right): > > https://codereview.chromium.org/1506933003/diff/1/src/js/json.js#newcode34 > ...
5 years ago (2015-12-09 08:18:47 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1506933003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1506933003/1
5 years ago (2015-12-09 09:41:48 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_arm_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm_rel/builds/11203)
5 years ago (2015-12-09 09:55:16 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1506933003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1506933003/20001
5 years ago (2015-12-09 12:13:06 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_rel/builds/12807)
5 years ago (2015-12-09 12:27:17 UTC) #11
neis
Please have another look. I had to adapt a webkit test. While doing so, I ...
5 years ago (2015-12-09 12:52:57 UTC) #12
Yang
On 2015/12/09 12:52:57, neis wrote: > Please have another look. I had to adapt a ...
5 years ago (2015-12-09 20:19:09 UTC) #13
adamk
https://codereview.chromium.org/1506933003/diff/1/src/js/json.js File src/js/json.js (right): https://codereview.chromium.org/1506933003/diff/1/src/js/json.js#newcode42 src/js/json.js:42: val[i] = newElement; On 2015/12/08 14:21:54, Yang wrote: > ...
5 years ago (2015-12-09 23:49:20 UTC) #14
neis
(It seems that hitting reply-all on the comment email neither includes the commenter nor posts ...
5 years ago (2015-12-10 08:35:44 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1506933003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1506933003/80001
5 years ago (2015-12-10 12:06:28 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-12-10 12:48:43 UTC) #21
commit-bot: I haz the power
5 years ago (2015-12-10 12:49:14 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a5380fe9ed8eecdda79f709d5a9c4714d97fa623
Cr-Commit-Position: refs/heads/master@{#32750}

Powered by Google App Engine
This is Rietveld 408576698