diff options
author | hlaaftana <10591326+hlaaftana@users.noreply.github.com> | 2020-04-26 11:12:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-26 10:12:16 +0200 |
commit | 76ffa4fa25ebf8f03a399a343088fa46e4ee13cb (patch) | |
tree | be20f16f3064c88383d554c44745fa02e3f744e1 /tests/js | |
parent | 31ba27590c6a2ddd5e6b65247b2d9f74b8ca1ba2 (diff) | |
download | Nim-76ffa4fa25ebf8f03a399a343088fa46e4ee13cb.tar.gz |
fixes #14112, tests for #12892, #12671, #11697 (#14125)
Diffstat (limited to 'tests/js')
-rw-r--r-- | tests/js/t11697.nim | 5 | ||||
-rw-r--r-- | tests/js/temptyseq.nim | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/js/t11697.nim b/tests/js/t11697.nim new file mode 100644 index 000000000..967752586 --- /dev/null +++ b/tests/js/t11697.nim @@ -0,0 +1,5 @@ +import tables + +var xs: Table[int, Table[int, int]] + +doAssertRaises(KeyError): reset xs[0] diff --git a/tests/js/temptyseq.nim b/tests/js/temptyseq.nim new file mode 100644 index 000000000..df4b3e8da --- /dev/null +++ b/tests/js/temptyseq.nim @@ -0,0 +1,8 @@ +# #12671 + +proc foo = + var x: seq[int] + doAssertRaises(IndexError): + inc x[0] + +foo() |