summaryrefslogtreecommitdiff
path: root/runtime/web_worker.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/web_worker.rs')
-rw-r--r--runtime/web_worker.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs
index 19e344ee7..ba2c016cc 100644
--- a/runtime/web_worker.rs
+++ b/runtime/web_worker.rs
@@ -335,7 +335,6 @@ pub struct WebWorkerOptions {
pub shared_array_buffer_store: Option<SharedArrayBufferStore>,
pub compiled_wasm_module_store: Option<CompiledWasmModuleStore>,
pub stdio: Stdio,
- pub startup_snapshot: Option<deno_core::Snapshot>,
}
impl WebWorker {
@@ -428,8 +427,6 @@ impl WebWorker {
ops::tty::init(),
deno_http::init(),
ops::http::init(),
- // Runtime JS
- js::init(),
// Permissions ext (worker specific state)
perm_ext,
];
@@ -439,7 +436,7 @@ impl WebWorker {
let mut js_runtime = JsRuntime::new(RuntimeOptions {
module_loader: Some(options.module_loader.clone()),
- startup_snapshot: options.startup_snapshot.take(),
+ startup_snapshot: Some(js::deno_isolate_init()),
source_map_getter: options.source_map_getter,
get_error_class_fn: options.get_error_class_fn,
shared_array_buffer_store: options.shared_array_buffer_store.clone(),