Re: [heycam/webidl] Issues with callables, realms, and proxies (#847)

> Gecko currently does not use `GetFunctionRealm` for the callback case. It uses the actual global of the object, which may not match what `GetFunctionRealm` returns. Now that SpiderMonkey exposes a `GetFunctionRealm` API, we could change that.... Does Chrome use `GetFunctionRealm` there?

For the purposes of Web IDL, Chrome also uses the realm in which the object was created. For the purposes of determining entry realm for promise handlers, Chrome (actually V8) uses GetFunctionRealm with a fallback to the current realm.

-- 
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/847#issuecomment-596032734

Received on Saturday, 7 March 2020 02:03:32 UTC