Re: Determining what prototype should be used for an object

On 11/17/14, 10:39 AM, Anne van Kesteren wrote:
> On Mon, Nov 17, 2014 at 4:29 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
>> That being to have the non-ES behavior of using the "this" object to
>> determine the Realm, yes?
>
> Yeah, if we keep that we'd have to define that somehow. It will become
> weird of course if objects move into becoming ES library objects over
> time. See ArrayBuffer and friends, promises in Gecko.

Yep.  I bet if you Promise.prototype.then.call on a Promise from another 
global, what Gecko has right now doesn't follow the ES spec.

-Boris

Received on Monday, 17 November 2014 15:48:22 UTC