summaryrefslogtreecommitdiff
path: root/cli/worker.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/worker.rs')
-rw-r--r--cli/worker.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/worker.rs b/cli/worker.rs
index 5e9d27918..ce9c05701 100644
--- a/cli/worker.rs
+++ b/cli/worker.rs
@@ -637,13 +637,13 @@ impl CliMainWorkerFactory {
);
if self.shared.subcommand.needs_test() {
- worker.js_runtime.execute_script_static(
+ worker.js_runtime.lazy_load_es_module_from_code(
"ext:cli/40_testing.js",
- include_str!("js/40_testing.js"),
+ deno_core::FastString::StaticAscii(include_str!("js/40_testing.js")),
)?;
- worker.js_runtime.execute_script_static(
+ worker.js_runtime.lazy_load_es_module_from_code(
"ext:cli/40_jupyter.js",
- include_str!("js/40_jupyter.js"),
+ deno_core::FastString::StaticAscii(include_str!("js/40_jupyter.js")),
)?;
}