diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-12-08 13:03:25 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-08 08:33:25 +0100 |
commit | c5c5dea90debcc5ec53b4803ca530558df32e43f (patch) | |
tree | 2bd0483edd0a921802999429d6501ecb59bed3ef /runtime/web_worker.rs | |
parent | 2235a1a359ffabd72689db58b9af5873e0a9b38a (diff) |
chore: use primordials in 40_testing.js (#21422)
This commit brings back usage of primordials in "40_testing.js" by
turning it back into an ES module and using new "lazy loading" functionality
of ES modules coming from "deno_core".
The same approach was applied to "40_jupyter.js".
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'runtime/web_worker.rs')
-rw-r--r-- | runtime/web_worker.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs index 5b8c1944a..4244f1045 100644 --- a/runtime/web_worker.rs +++ b/runtime/web_worker.rs @@ -43,7 +43,6 @@ use deno_fs::FileSystem; use deno_http::DefaultHttpPropertyExtractor; use deno_io::Stdio; use deno_kv::dynamic::MultiBackendDbHandler; -use deno_node::SUPPORTED_BUILTIN_NODE_MODULES_WITH_PREFIX; use deno_tls::RootCertStoreProvider; use deno_web::create_entangled_message_port; use deno_web::BlobStore; @@ -523,11 +522,6 @@ impl WebWorker { (None, None) }; - // Clear extension modules from the module map, except preserve `node:*` - // modules as `node:` specifiers. - let preserve_snapshotted_modules = - Some(SUPPORTED_BUILTIN_NODE_MODULES_WITH_PREFIX); - let mut js_runtime = JsRuntime::new(RuntimeOptions { module_loader: Some(options.module_loader.clone()), startup_snapshot: options @@ -539,7 +533,6 @@ impl WebWorker { compiled_wasm_module_store: options.compiled_wasm_module_store.clone(), extensions, inspector: options.maybe_inspector_server.is_some(), - preserve_snapshotted_modules, feature_checker: Some(options.feature_checker.clone()), op_metrics_factory_fn, ..Default::default() |