[heycam/webidl] Modernize invoking user code (#113)

This updates the four algorithms that invoke user code in the following ways:

- Updates them to use HTML's latest framework for managing script settings objects. The previous version referred to concepts, such as the "stack of incumbent scripts", which have not been defined for a long time (i.e. since before whatwg/html#401). Updates in whatwg/html#401 and whatwg/html#1091 have changed the setup here. There is still some ongoing discussion in whatwg/html#473 about whether the current HTML setup is correct for managing _incumbent_ settings objects, but this at least updates the algorithms to correctly manage _entry_ settings objects. The plan implemented here is roughly that discussed in https://github.com/whatwg/html/issues/473#issuecomment-212164549.
- Gives them explicit <dfn>s with explicit arguments to be passed.
- Updates them to use some slightly-more-modern ES technology such as Call(), Get(), and Set().

This also updates all ECMAScript references to point to the latest spec.

--

Review appreciated @bzbarsky. As I say above, incumbent might be a bit messed up at the moment, but I am pretty sure this is a strict improvement. I wanted to finish off fixing "entry"; now I need to go off an take care of incumbent.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Modernize invoking user code

-- File Changes --

    M index.html (634)
    M index.xml (293)

-- Patch Links --

https://github.com/heycam/webidl/pull/113.patch
https://github.com/heycam/webidl/pull/113.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/113

Received on Tuesday, 3 May 2016 19:57:41 UTC