Fixed js codegen issue for uncaught exceptions.

This commit is contained in:
Yuriy Glukhov 2016-08-27 15:08:03 +03:00
commit 8bff930c7c
3 changed files with 5 additions and 4 deletions

View file

@ -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")