Status: New
Owner: ----
New issue 3172 by [email protected]: About "issue 3064, Tighten up
Object.prototype.__proto__ "
http://code.google.com/p/v8/issues/detail?id=3172
In this commit https://code.google.com/p/v8/source/detail?r=19479 , I think
code below
if (IS_SPEC_OBJECT(proto) || IS_NULL(proto) && IS_SPEC_OBJECT(this)) {
%SetPrototype(this, proto);
}
should be
if ((IS_SPEC_OBJECT(proto) || IS_NULL(proto)) && IS_SPEC_OBJECT(this)) {
%SetPrototype(this, proto);
}
Test case:
V8 version 3.25.0 [console: dumb]
d8> a=1
1
d8> b={}
{}
d8>
Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set.call(a,b)
Expected: silently does nothing
Actual: (d8):1: illegal access
--
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.