« Return to Thread: Re: deprecating __proto__

Re: deprecating __proto__

by Benjamin Smedberg :: Rate this Message:

Reply to Author | View in Thread

Igor Bukanov wrote:
> Given that ES 3.1 has added Object.getPrototypeOf, should SpiderMonkey
> deprecate __proto__? For the code that sets the __proto__,
> Object.setPrototypeOf can be provided.

The only use of __proto__ that I'd like to keep is

let obj = { __proto__: someprotoobj,
             prop: 'a' };

We use this construct in dehydra/treehydra to layer scopes on top of the
global object.

--BDS
_______________________________________________
dev-tech-js-engine mailing list
dev-tech-js-engine@...
https://lists.mozilla.org/listinfo/dev-tech-js-engine

 « Return to Thread: Re: deprecating __proto__

LightInTheBox - Buy quality products at wholesale price!