diff options
author | Nayeem Rahman <muhammed.9939@gmail.com> | 2019-09-17 17:17:12 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-09-17 12:17:12 -0400 |
commit | e55e4a2838e0f67cd0789ec4d3eec62a5b7ab238 (patch) | |
tree | fdedfb5b0aa5fe35dc0021d170e7eabd66426b98 /js/custom_event_test.ts | |
parent | 9cfdc60a23e6418d4780dc3ebd6266248555bb03 (diff) |
Remove some non-standard web API constructors (#2970)
This removes the EventListener, EventInit and CustomEventInit constructors from the userland globals. The type exports stay.
I removed the internal classes as well. EventListener's implementation seemed to be doing some bookkeeping on handled events but that's not being used anywhere so I assume it's old debug stuff. The other two are completely redundant.
Diffstat (limited to 'js/custom_event_test.ts')
-rw-r--r-- | js/custom_event_test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/custom_event_test.ts b/js/custom_event_test.ts index 8a9dc9416..4d2eb2c16 100644 --- a/js/custom_event_test.ts +++ b/js/custom_event_test.ts @@ -4,12 +4,12 @@ import { test, assertEquals } from "./test_util.ts"; test(function customEventInitializedWithDetail(): void { const type = "touchstart"; const detail = { message: "hello" }; - const customEventDict = new CustomEventInit({ + const customEventInit = { bubbles: true, cancelable: true, detail - }); - const event = new CustomEvent(type, customEventDict); + } as CustomEventInit; + const event = new CustomEvent(type, customEventInit); assertEquals(event.bubbles, true); assertEquals(event.cancelable, true); |