From 286e5d0be9bb11a69d55f0eedd4a6678b0d48e7d Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Wed, 8 Feb 2023 22:40:18 +0100 Subject: refactor: internal runtime code TS support (#17672) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a proof of concept for being able to snapshot TypeScript files. Currently only a single runtime file is authored in TypeScript - "runtime/js/01_version.ts". Not needed infrastructure was removed from "core/snapshot_util.rs". --------- Co-authored-by: Bartek IwaƄczuk --- 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 103b97430..376d30593 100644 --- a/bench_util/js_runtime.rs +++ b/bench_util/js_runtime.rs @@ -11,7 +11,7 @@ pub fn create_js_runtime(setup: impl FnOnce() -> Vec) -> JsRuntime { JsRuntime::new(RuntimeOptions { extensions_with_js: setup(), module_loader: Some(std::rc::Rc::new( - deno_core::InternalModuleLoader::new(None), + deno_core::InternalModuleLoader::default(), )), ..Default::default() }) -- cgit v1.2.3