diff options
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"); +}); |