[heycam/webidl] Environment stuff for exception throwing is nonsense (#292)

Was just pointed to https://heycam.github.io/webidl/#dfn-current-global-environment today.  Why do we thing there is a Function on "the ECMAScript call stack" at all?  What if we're in https://html.spec.whatwg.org/multipage/browsers.html#windowproxy-getownproperty invoked at toplevel like so:

    <script>crossOriginIframe.contentWindow.history</script>

?

Once we get past that, why would this Function be the `this` of anything?  That part doesn't make sense.

I think this whole section should be replaced by a reference to https://html.spec.whatwg.org/multipage/webappapis.html#current-global-object or so.

@domenic 

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

Received on Wednesday, 1 February 2017 16:25:07 UTC