Mark Miller (2013-05-07T19:18:23.000Z)
github at esdiscuss.org (2013-07-12T02:27:22.006Z)
On Tue, May 7, 2013 at 11:09 AM, Nathan Wall <nathan.wall at live.com> wrote: > If I didn't misinterpret, this sounds like a very, very a welcome > discussion -- one for which I would like to restate that I have a real > use-case which is not 100% solvable with realm-confined `__proto__` [1]. > > I would like to add that, should `setPrototypeOf`, be admitted, it should > work on objects which don't inherit from `Object.prototype` in order to > settle my use-case (and also from a purist's point of view of how the > language should behave). If `setPrototypeOf` is not admitted, I would hope > that at least `__proto__` will be a setter which can be retrieved with > `getOwnPropertyDescriptor` and applied to objects which don't inherit from > `Object.prototype`. > Agreed on both. The only restriction we need is the one that ES5 already gives us: You can't change the [[Prototype]] of a non-extensible object.