From 76ffa4fa25ebf8f03a399a343088fa46e4ee13cb Mon Sep 17 00:00:00 2001 From: hlaaftana <10591326+hlaaftana@users.noreply.github.com> Date: Sun, 26 Apr 2020 11:12:16 +0300 Subject: fixes #14112, tests for #12892, #12671, #11697 (#14125) --- tests/js/t11697.nim | 5 +++++ tests/js/temptyseq.nim | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/js/t11697.nim create mode 100644 tests/js/temptyseq.nim (limited to 'tests/js') 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() -- cgit 1.4.1-2-gfad0