summaryrefslogtreecommitdiff
path: root/runtime/js/30_os.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/30_os.js')
-rw-r--r--runtime/js/30_os.js4
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();