Re: [heycam/webidl] State that by default all objects are created in the relevant realm of `this` (#135)

In general, staying in the same realm when you go parallel makes sense.  The main footguns with object creation after going parallel are:

1.  Your global can get torn down around you (e.g. `iframe.remove()`).  It still exists, but maybe not in the state you expect it to be in.
2.  If the object creation has observable side-effects, or is otherwise synchronously observable, it needs to happen off a task, not directly in the parallel section.

Apart from that, using the same global unless explicitly stated otherwise makes sense to me.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/135#issuecomment-286603543

Received on Wednesday, 15 March 2017 00:23:35 UTC