diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-11-24 19:46:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-25 04:46:16 +0100 |
commit | 89424f8e4a339d42f17e772f5f65fc89e024a8ca (patch) | |
tree | ffe7c8ac457810bb53d63fac4082bff21eb0d6f1 /cli/worker.rs | |
parent | 7d8f0ae038d44dd3fe25b3fa98157126f01b179b (diff) |
perf: move "cli/js/40_testing.js" out of main snapshot (#21212)
Closes https://github.com/denoland/deno/issues/21136
---------
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/worker.rs')
-rw-r--r-- | cli/worker.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cli/worker.rs b/cli/worker.rs index 8ce46c077..361aad2ec 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -639,9 +639,13 @@ impl CliMainWorkerFactory { options, ); - if self.shared.subcommand.is_test_or_jupyter() { + if self.shared.subcommand.needs_test() { worker.js_runtime.execute_script_static( - "40_jupyter.js", + "ext:cli/40_testing.js", + include_str!("js/40_testing.js"), + )?; + worker.js_runtime.execute_script_static( + "ext:cli/40_jupyter.js", include_str!("js/40_jupyter.js"), )?; } |