Comment #1 on issue 2727 by erights: changing prototype chain using
__proto__ fails
http://code.google.com/p/v8/issues/detail?id=2727
This behavior is correct per the ES6 spec of __proto__. Prior to ES6
browsers behaved so differently on the edge cases, that there was no de
facto agreement on such matters. In ES6, Object.prototype.__proto__ is an
accessor property whose setter changes the [[Prototype]] of its "this". The
proto1 object above does not inherit from Object.prototype, so neither do
any of the objects that inherit from it. The __proto__ assign is therefore
not intercepted by that setter, and so simply creates a normal property
that happens to be named "__proto__".
I suggest closing this out as Invalid or WorkingAsIntended.
--
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.