diff options
author | Matt Mastracci <matthew@mastracci.com> | 2024-03-13 20:49:54 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-13 20:49:54 -0600 |
commit | 1f3c4c976313904d5df0b33b2cc0e282e62d1000 (patch) | |
tree | f2413abe8965bfcb692f0d37fe5e12854aeeab39 /tests/specs/test/sanitizer_with_error/main.js | |
parent | bc782cee98096d2562d87c7a0b15051b6d0d6628 (diff) |
fix(cli): show asserts before leaks (#22904)
Fixes #22837
Diffstat (limited to 'tests/specs/test/sanitizer_with_error/main.js')
-rw-r--r-- | tests/specs/test/sanitizer_with_error/main.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/specs/test/sanitizer_with_error/main.js b/tests/specs/test/sanitizer_with_error/main.js new file mode 100644 index 000000000..38d0ea81e --- /dev/null +++ b/tests/specs/test/sanitizer_with_error/main.js @@ -0,0 +1,6 @@ +Deno.test(function throws() { + // Leak + setTimeout(() => {}, 60_000); + // But the exception should mask the leak + throw new Error("Throws"); +}); |