Fixed js codegen issue for uncaught exceptions.
This commit is contained in:
parent
90b0a771e4
commit
8bff930c7c
3 changed files with 5 additions and 4 deletions
|
|
@ -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")
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue