summaryrefslogtreecommitdiff
path: root/runtime/worker.rs
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2021-04-30 16:38:35 +0200
committerGitHub <noreply@github.com>2021-04-30 10:38:35 -0400
commit5ec478b5fa6261e2b2d3c8daed3cba9e780730c7 (patch)
tree9662acbbfca40b2a5aea25b63f239e39bd254c37 /runtime/worker.rs
parentf31ee8d1bfc50de6cef5b746f6fd6431b7b772e5 (diff)
refactor(core): initialize extensions in runtime constructor (#10421)
This ensures that provided extensions are all correctly setup and ready to use once the JsRuntime constructor returns Note: this will also initialize ops for to-be-snapshotted runtimes
Diffstat (limited to 'runtime/worker.rs')
-rw-r--r--runtime/worker.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs
index fddaf1f01..c2e241169 100644
--- a/runtime/worker.rs
+++ b/runtime/worker.rs
@@ -140,8 +140,6 @@ impl MainWorker {
});
}
- js_runtime.init_extension_ops().unwrap();
-
ops::runtime::init(js_runtime, main_module);
ops::worker_host::init(
js_runtime,