diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-07-05 00:12:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-05 00:12:41 +0200 |
commit | a919a5dd1167b79f267cbed7312b3a7d296d429f (patch) | |
tree | 73b7b1a8b5daef3ab7ad9c07423c4907a23a0269 /runtime/worker.rs | |
parent | 06934db883e9ae64c7603f98051676cbcf90994f (diff) |
Revert "refactor(snapshots): to their own crate (#14794)" (#15076)
This reverts commit fd5a12d7e25dc53238e2bbcffe970e646c1035f3.
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) |