On Oct 15, 2014, at 1:36 PM, Boris Zbarsky wrote:

> On 10/15/14, 3:45 PM, Allen Wirfs-Brock wrote:
> ...
>> A PromiseReactionJob that is associated with a marked Realm
> 
> Are PromiseReactionJobs associated with a Realm at all?  If so, how is that 
> Realm determined?

Every PendingJob [1] has has a [[Realm]] field that is set to the realm of the 
active execution context when the job is enqueued [2].  For the 
PromiseResolutionJobs we are talking about that will be the realm of the 'then' 
method [3]  that enqueues them.  For the example I worked through that would be 
realm R, the realm of the active execution context when f0 is created in stop 1.

Allen

[1] 
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-jobs-and-job-queues 
[2] http://people.mozilla.org/~jorendorff/es6-draft.html#sec-enqueuejob 
[3] 
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise.prototype.then 

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to