From d1685b120bf7da5ba384806153f65d90ef156b77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 9 Mar 2023 20:22:27 -0400 Subject: refactor(core): remove RuntimeOptions::extensions_with_js (#18099) This commit removes "deno_core::RuntimeOptions::extensions_with_js". Now it's embedders' responsibility to properly register extensions that will not contains JavaScript sources when running from an existing snapshot. Prerequisite for https://github.com/denoland/deno/pull/18080 --- bench_util/js_runtime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bench_util/js_runtime.rs') diff --git a/bench_util/js_runtime.rs b/bench_util/js_runtime.rs index edeb74fb4..e381ba16b 100644 --- a/bench_util/js_runtime.rs +++ b/bench_util/js_runtime.rs @@ -9,7 +9,7 @@ use crate::profiling::is_profiling; pub fn create_js_runtime(setup: impl FnOnce() -> Vec) -> JsRuntime { JsRuntime::new(RuntimeOptions { - extensions_with_js: setup(), + extensions: setup(), module_loader: Some( std::rc::Rc::new(deno_core::ExtModuleLoader::default()), ), -- cgit v1.2.3