diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2023-02-08 22:40:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-08 22:40:18 +0100 |
commit | 286e5d0be9bb11a69d55f0eedd4a6678b0d48e7d (patch) | |
tree | 37399e924de155fbcbeab975222bdb16f257e228 /bench_util/js_runtime.rs | |
parent | bef50416b92a3ed7bf44b361fc5360f9a52c83e6 (diff) |
refactor: internal runtime code TS support (#17672)
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 <biwanczuk@gmail.com>
Diffstat (limited to 'bench_util/js_runtime.rs')
-rw-r--r-- | bench_util/js_runtime.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<Extension>) -> 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() }) |