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 /runtime/js | |
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 'runtime/js')
-rw-r--r-- | runtime/js/99_main.js | 5 |
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 { |