Status: New
Owner: ----
New issue 3139 by [email protected]: JSON.parse(): 15.12.2 Walk
operation must always use [[DefineOwnProperty]]
http://code.google.com/p/v8/issues/detail?id=3139
[ES5.1 15.12.2] Walk abstract operation always uses [[DefineOwnProperty]]
to add properties to an object, but the v8 implementation uses [[Put]] in
some cases. This is visible when a reviver function adds an object with
accessor properties.
v8 bleeding edge, rev 19151
Test case:
---
function reviver(p, v){
if (p == "a") {
this.b = {
get x() {
return null;
},
set x(_){
print("whoa");
}
}
}
return v;
}
JSON.parse('{"a":0,"b":1}', reviver);
---
Expected: "whoa" is not printed
Actual: "whoa" is printed
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.