- From: Domenic Denicola <notifications@github.com>
- Date: Wed, 11 May 2016 17:24:30 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Cc:
Received on Thursday, 12 May 2016 00:24:57 UTC
> if code in window1 does var f = new window2.Function("stuff") then f has window1 as its script-or-module and window2 as its Realm?
Yes, exactly.
As I said, I see two alternatives here. To rephrase them slightly:
- "report an exception" takes a script. It uses that script's filename, and dispatches error events to that script's global.
- "report an exception" takes a script and a global. It uses that script's filename, but dispatches error events to the supplied global, which may not equal the script's global.
In our example, the first alternative dispatches error events to `window1`, whereas the second allows the possibility of dispatching them to `window2` if we thread everything through correctly.
---
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/pull/113#issuecomment-218628099
Received on Thursday, 12 May 2016 00:24:57 UTC