Re: [whatwg/dom] Clarify behaviour of constructor in `class Foo extends Event {}` (#598)

In Safari/Edge, it seems like `new Event()` is behaving like:

```js
class Event {
  constructor() {
    return Object.create(Event.prototype);
  }
}
```

Which you could argue is correct according to:

> **event = new Event(type [, eventInitDict])**
> Returns a new event…

Although this is in a non-normative section. There aren't any normative steps for the event constructor.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/598#issuecomment-373015141

Received on Wednesday, 14 March 2018 13:11:17 UTC