summary refs log tree commit diff stats
path: root/tests/js
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2020-10-30 10:54:39 +0800
committerGitHub <noreply@github.com>2020-10-30 03:54:39 +0100
commitd8fb2379c9a6e83b7e8151ba13116afb1bedc00f (patch)
treeaff9556d7aa3e475952e7c6e545d6f33292b81a4 /tests/js
parent33e258c72fe9c06410b30c5bc4364626c4f6ecb1 (diff)
downloadNim-d8fb2379c9a6e83b7e8151ba13116afb1bedc00f.tar.gz
add testcase for #7127 (#15780)
Diffstat (limited to 'tests/js')
-rw-r--r--tests/js/t7127.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/js/t7127.nim b/tests/js/t7127.nim
new file mode 100644
index 000000000..364aedd4a
--- /dev/null
+++ b/tests/js/t7127.nim
@@ -0,0 +1,2 @@
+doAssertRaises(DivByZeroDefect): discard 1 mod 0
+doAssertRaises(DivByZeroDefect): discard 1 div 0
\ No newline at end of file