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/web_worker.rs | |
parent | 06934db883e9ae64c7603f98051676cbcf90994f (diff) |
Revert "refactor(snapshots): to their own crate (#14794)" (#15076)
This reverts commit fd5a12d7e25dc53238e2bbcffe970e646c1035f3.
Diffstat (limited to 'runtime/web_worker.rs')
-rw-r--r-- | runtime/web_worker.rs | 5 |
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(), |