DescriptionJSON.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 #
Messages
Total messages: 23 (9 generated)
|