diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-03-05 01:17:39 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-05 01:17:39 +0000 |
commit | d9fa2dd5505a773ac2c8eb6ca2a8bbd237aca35d (patch) | |
tree | ec5b0008f8095d3c03e6af31685ed99569163dd9 /cli/worker.rs | |
parent | 0022c35a237773b50a771b0fef48cac734f7a9d6 (diff) |
chore: upgrade deno_core (#22699)
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
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)), )?;)* } } |