From c5c5dea90debcc5ec53b4803ca530558df32e43f Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Fri, 8 Dec 2023 13:03:25 +0530 Subject: chore: use primordials in 40_testing.js (#21422) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- runtime/web_worker.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'runtime/web_worker.rs') 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() -- cgit v1.2.3