summaryrefslogtreecommitdiff
path: root/ext/websocket/01_websocket.js
diff options
context:
space:
mode:
authorAndreu Botella <andreu@andreubotella.com>2022-10-24 16:14:17 +0200
committerGitHub <noreply@github.com>2022-10-24 16:14:17 +0200
commitdbcbf53ab5168ad9c5d6ca8b4c7740db98b270a6 (patch)
tree063e79f57b443ccdd0b3e4369c0133cbf21b60a3 /ext/websocket/01_websocket.js
parent5828ce76759e0937541d2fc0e465829b37ddd094 (diff)
experiment(ext/web): Don't expose event classes during the bootstrap phase (#16213)
Diffstat (limited to 'ext/websocket/01_websocket.js')
-rw-r--r--ext/websocket/01_websocket.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/websocket/01_websocket.js b/ext/websocket/01_websocket.js
index 4b0b4e941..5b364f809 100644
--- a/ext/websocket/01_websocket.js
+++ b/ext/websocket/01_websocket.js
@@ -10,7 +10,9 @@
const webidl = window.__bootstrap.webidl;
const { HTTP_TOKEN_CODE_POINT_RE } = window.__bootstrap.infra;
const { DOMException } = window.__bootstrap.domException;
- const { defineEventHandler } = window.__bootstrap.event;
+ const { Event, ErrorEvent, CloseEvent, MessageEvent, defineEventHandler } =
+ window.__bootstrap.event;
+ const { EventTarget } = window.__bootstrap.eventTarget;
const { Blob, BlobPrototype } = globalThis.__bootstrap.file;
const {
ArrayBufferPrototype,