W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2014

Re: Determining what prototype should be used for an object

From: Allen Wirfs-Brock <allen@wirfs-brock.com>
Date: Mon, 17 Nov 2014 18:21:09 -0800
Cc: public-script-coord@w3.org
Message-Id: <C098A52B-AACE-4004-813B-F17A3E16AF5C@wirfs-brock.com>
To: Boris Zbarsky <bzbarsky@mit.edu>

On Nov 17, 2014, at 6:14 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 11/17/14, 7:33 PM, Travis Leithead wrote:
>> FWIW:
>> In IE, we always have two Realms to use at runtime when a DOM method
>> needs to create objects: the callerís realm (from the current call-chain
>> provided by the script engine) and the Ďthisí objectís Realm.
> Travis, I just want to check on something.  If I have script in window1 that does:
>  window2.document.createElement.call(window2.document)
> then is the "caller's realm" in his case window1 or window2?

and what about the Realm of the createElement function?  Thatís the realm that ES6 would expect to be associated with any objects allocated by createElement. 


>> Our design is fairly straightforward: if we are creating DOM objects we almost
>> always use the Ďthisí objectís Realm.
> OK.  What do you do in the get/createImageData testcase?
> -Boris
Received on Tuesday, 18 November 2014 02:21:41 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:23 UTC