diff options
author | Andreu Botella <andreu@andreubotella.com> | 2022-10-24 16:14:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-24 16:14:17 +0200 |
commit | dbcbf53ab5168ad9c5d6ca8b4c7740db98b270a6 (patch) | |
tree | 063e79f57b443ccdd0b3e4369c0133cbf21b60a3 /runtime/js/10_permissions.js | |
parent | 5828ce76759e0937541d2fc0e465829b37ddd094 (diff) |
experiment(ext/web): Don't expose event classes during the bootstrap phase (#16213)
Diffstat (limited to 'runtime/js/10_permissions.js')
-rw-r--r-- | runtime/js/10_permissions.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/runtime/js/10_permissions.js b/runtime/js/10_permissions.js index 6aad0677d..f048a5d62 100644 --- a/runtime/js/10_permissions.js +++ b/runtime/js/10_permissions.js @@ -2,13 +2,11 @@ "use strict"; ((window) => { - const { - Event, - EventTarget, - Deno: { core: { ops } }, - __bootstrap: { webUtil: { illegalConstructorKey } }, - } = window; + const { ops } = Deno.core; + const { Event } = window.__bootstrap.event; + const { EventTarget } = window.__bootstrap.eventTarget; const { pathFromURL } = window.__bootstrap.util; + const { illegalConstructorKey } = window.__bootstrap.webUtil; const { ArrayIsArray, ArrayPrototypeIncludes, |