Status: New
Owner: ----

New issue 2645 by [email protected]: expose ObjectSetProto as setter if flagged
http://code.google.com/p/v8/issues/detail?id=2645

Around Line 392 of src/v8natives.js

return { get: desc.getGet(),
           set: desc.getSet() === ObjectSetProto ? ObjectPoisonProto
                                                 : desc.getSet(),

this makes impossible to create an environment without Object.prototype.__proto__ because Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set will throw if used
so it's not possible to delete Object.prototype.__proto__;

There are dozens of flags as d3 options, I don't think an extra
--expose_proto_setter
could harm anyone so that

set: desc.getSet() === ObjectSetProto && DONT_EXPOSE_PROTO ? ObjectPoisonProto
                                                 : desc.getSet(),

As default constant/function, returning true once flagged.

Thank you very very much!

--
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.


Reply via email to