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/30_os.js | |
parent | 5828ce76759e0937541d2fc0e465829b37ddd094 (diff) |
experiment(ext/web): Don't expose event classes during the bootstrap phase (#16213)
Diffstat (limited to 'runtime/js/30_os.js')
-rw-r--r-- | runtime/js/30_os.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/js/30_os.js b/runtime/js/30_os.js index c3addd043..4fa71fa83 100644 --- a/runtime/js/30_os.js +++ b/runtime/js/30_os.js @@ -4,12 +4,14 @@ ((window) => { const core = window.Deno.core; const ops = core.ops; + const { Event } = window.__bootstrap.event; + const { EventTarget } = window.__bootstrap.eventTarget; const { Error, SymbolFor, } = window.__bootstrap.primordials; - const windowDispatchEvent = window.dispatchEvent.bind(window); + const windowDispatchEvent = EventTarget.prototype.dispatchEvent.bind(window); function loadavg() { return ops.op_loadavg(); |