Re: [heycam/webidl] Is a subclass still a platform object? (#540)

FWIW, it seems that at least Chrome shifts the relevant global object in that case, see:
```html
.<iframe></iframe>
<script>
class X extends frames[0].EventTarget {};
obj = new X();
obj.addEventListener("hi", () => w(window.event));
obj.dispatchEvent(new Event("hi"));
</script>
```

-- 
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/540#issuecomment-378893702

Received on Thursday, 5 April 2018 10:40:25 UTC