diff options
Diffstat (limited to 'cli/worker.rs')
-rw-r--r-- | cli/worker.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cli/worker.rs b/cli/worker.rs index 302303f28..47658e594 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -397,10 +397,7 @@ impl CliMainWorker { name: &'static str, source_code: &'static str, ) -> Result<v8::Global<v8::Value>, AnyError> { - self - .worker - .js_runtime - .execute_script_static(name, source_code) + self.worker.js_runtime.execute_script(name, source_code) } } @@ -656,9 +653,9 @@ impl CliMainWorkerFactory { if self.shared.subcommand.needs_test() { macro_rules! test_file { ($($file:literal),*) => { - $(worker.js_runtime.lazy_load_es_module_from_code( + $(worker.js_runtime.lazy_load_es_module_with_code( concat!("ext:cli/", $file), - deno_core::FastString::StaticAscii(include_str!(concat!("js/", $file))), + deno_core::ascii_str_include!(concat!("js/", $file)), )?;)* } } |