[web-platform-tests] Pull Request: Subclassable & Constructable EventTarget

wpt-pr-bot has just labeled a pull request from chromium-wpt-export-bot for https://github.com/w3c/web-platform-tests as "wg-webrtc":

== Subclassable & Constructable EventTarget ==
Currently, EventTarget cannot be constructed or be subclassed (in JavaScript). 
The spec for EventTarget was updated to allow constructing and
subclassing EventTarget. 

A new class, EventTargetImpl, is created as the user-constructable version of
EventTarget. Even though the name is EventTargetImpl, it will be exposed as
EventTarget to JavaScript. We are using a hacky approach by making
EventTarget::Create return an instance of EventTargetImpl, which means an
instance of EventTargetImpl will be returned when the EventTarget object is
constructed in JavaScript.

Spec:
https://dom.spec.whatwg.org/#dom-eventtarget-eventtarget

Design doc:
https://docs.google.com/a/google.com/document/d/1TXMAkLeaNpbbETeqTyJZ57YnmqzgchyhFsANVZ2Ow3Y/edit?usp=sharing 

Bug:740576
Change-Id: Ia0569ee99c4d856120c387ca6aceed5fbe1491b5

Reviewed-on: https://chromium-review.googlesource.com/754248
WPT-Export-Revision: 3fe2793b7c665bd41e5f851adce604a065217acb

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/w3c/web-platform-tests/8088)
<!-- Reviewable:end -->


See https://github.com/w3c/web-platform-tests/pull/8088

Received on Tuesday, 7 November 2017 06:58:19 UTC