Allow extending of event objects

Issue #16379447 • Assigned to Travis L.

Details

Author
Jake A.
Created
Mar 14, 2018
Privacy
This issue is public.
Found in
  • Microsoft Edge
Standard affected
DOM Standard

Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

class Foo extends Event {}
console.log(new Foo(‘bar’).constructor);

Chrome & Firefox say Foo, Edge & Safari say Event.

The Chrome/Firefox behaviour is preferable, as it allows you to create custom event objects.

Attachments

0 attachments

    Comments and activity

    You need to sign in to your Microsoft account to add a comment.

    Sign in