summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/js/99_main.js2
-rw-r--r--runtime/web_worker.rs1
-rw-r--r--runtime/worker.rs1
3 files changed, 2 insertions, 2 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index 851d798c3..d2626a07d 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -142,8 +142,6 @@ delete Object.prototype.__proto__;
}
function runtimeStart(runtimeOptions, source) {
- core.ops();
-
core.setMacrotaskCallback(timers.handleTimerMacrotask);
version.setVersions(
runtimeOptions.denoVersion,
diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs
index cdc3d7e3d..f6f88f59b 100644
--- a/runtime/web_worker.rs
+++ b/runtime/web_worker.rs
@@ -284,6 +284,7 @@ impl WebWorker {
t.add(stream);
}
}
+ js_runtime.sync_ops_cache();
worker
}
diff --git a/runtime/worker.rs b/runtime/worker.rs
index 6de87f52e..6dbf8e7ec 100644
--- a/runtime/worker.rs
+++ b/runtime/worker.rs
@@ -171,6 +171,7 @@ impl MainWorker {
t.add(stream);
}
}
+ js_runtime.sync_ops_cache();
worker
}