summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorYuriy Glukhov <yuriy.glukhov@gmail.com>2016-08-27 15:08:03 +0300
committerYuriy Glukhov <yuriy.glukhov@gmail.com>2016-08-27 16:52:08 +0300
commit8bff930c7c0bfa02e4d942faec1e7532d85f0cba (patch)
tree2f1bca2707d6d4fa978bd8d0c5c2725b784d30a4 /tests
parent90b0a771e405eab9bc48e83ca7e4f47d3203d088 (diff)
downloadNim-8bff930c7c0bfa02e4d942faec1e7532d85f0cba.tar.gz
Fixed js codegen issue for uncaught exceptions.
Diffstat (limited to 'tests')
-rw-r--r--tests/exception/tunhandledexc.nim5
-rw-r--r--tests/testament/categories.nim1
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/exception/tunhandledexc.nim b/tests/exception/tunhandledexc.nim
index 63a402414..c318aec81 100644
--- a/tests/exception/tunhandledexc.nim
+++ b/tests/exception/tunhandledexc.nim
@@ -14,10 +14,9 @@ proc genErrors(s: string) =
     raise newException(EsomeotherErr, "bla")
 
 when true:
+  try: discard except: discard
+
   try:
     genErrors("errssor!")
   except ESomething:
     echo("Error happened")
-
-
-
diff --git a/tests/testament/categories.nim b/tests/testament/categories.nim
index e534cc161..8d8d0bcec 100644
--- a/tests/testament/categories.nim
+++ b/tests/testament/categories.nim
@@ -220,6 +220,7 @@ proc jsTests(r: var TResults, cat: Category, options: string) =
   for testfile in ["exception/texceptions", "exception/texcpt1",
                    "exception/texcsub", "exception/tfinally",
                    "exception/tfinally2", "exception/tfinally3",
+                   "exception/tunhandledexc",
                    "actiontable/tactiontable", "method/tmultim1",
                    "method/tmultim3", "method/tmultim4",
                    "varres/tvarres0", "varres/tvarres3", "varres/tvarres4",