diff options
Diffstat (limited to 'runtime/worker.rs')
-rw-r--r-- | runtime/worker.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs index f9274babe..5100f42da 100644 --- a/runtime/worker.rs +++ b/runtime/worker.rs @@ -81,7 +81,6 @@ pub struct WorkerOptions { 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 MainWorker { @@ -169,8 +168,6 @@ impl MainWorker { ops::tty::init(), deno_http::init(), ops::http::init(), - // Runtime JS - js::init(), // Permissions ext (worker specific state) perm_ext, ]; @@ -178,7 +175,7 @@ impl MainWorker { 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(), @@ -432,7 +429,6 @@ mod tests { shared_array_buffer_store: None, compiled_wasm_module_store: None, stdio: Default::default(), - startup_snapshot: None, }; MainWorker::bootstrap_from_options(main_module, permissions, options) |