[heycam/webidl] Clarify that exceptions are always thrown in the current Realm (#300)

Closes #292, in particular by removing the nonsensical "current global environment" concept and switching the example to reflect the desired semantics instead of the opposite.

This commit also modernizes the section and fixes a few small bugs, such as the omission of the message for the DOMException case, or the attempt to call the DOMException constructor as a function, which in most implementations will throw.
You can view, comment on, or merge this pull request online at:

  https://github.com/heycam/webidl/pull/300

-- Commit Summary --

  * Clarify that exceptions are always thrown in the current Realm

-- File Changes --

    M index.bs (116)
    M index.html (152)

-- Patch Links --

https://github.com/heycam/webidl/pull/300.patch
https://github.com/heycam/webidl/pull/300.diff

-- 
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/300

Received on Monday, 6 February 2017 21:11:11 UTC