summaryrefslogtreecommitdiff
path: root/runtime/js/99_main.js
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2023-11-24 19:46:16 -0800
committerGitHub <noreply@github.com>2023-11-25 04:46:16 +0100
commit89424f8e4a339d42f17e772f5f65fc89e024a8ca (patch)
treeffe7c8ac457810bb53d63fac4082bff21eb0d6f1 /runtime/js/99_main.js
parent7d8f0ae038d44dd3fe25b3fa98157126f01b179b (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 'runtime/js/99_main.js')
-rw-r--r--runtime/js/99_main.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index 89296d632..1af2585a5 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -448,6 +448,11 @@ const finalDenoNs = {
resources: core.resources,
close: core.close,
...denoNs,
+ // Deno.test and Deno.bench are noops here, but kept for compatibility; so
+ // that they don't cause errors when used outside of `deno test`/`deno bench`
+ // contexts.
+ test: () => {},
+ bench: () => {},
};
const {