Re: Determining what prototype should be used for an object

On Mon, Nov 17, 2014 at 4:47 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 11/17/14, 10:39 AM, Anne van Kesteren wrote:
>> 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.

This is why it would be nice if we could get rid of it. Each of these
little differences feels like something that will bite us later. I
suspect it would mean a UA would have to start doing the whole
telemetry / web-compatible dance. Which sucks since it's a minor
detail, but long term it will help us if we are closer to the
JavaScript model (or are the same, ideally).


-- 
https://annevankesteren.nl/

Received on Monday, 17 November 2014 16:00:28 UTC