diff options
Diffstat (limited to 'tests/js/test2.nim')
-rw-r--r-- | tests/js/test2.nim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/js/test2.nim b/tests/js/test2.nim index 0bfb99139..fa857ccc5 100644 --- a/tests/js/test2.nim +++ b/tests/js/test2.nim @@ -9,6 +9,9 @@ js 3.14 # This file tests the JavaScript generator +doAssert getCurrentException() == nil +doAssert getCurrentExceptionMsg() == "" + # #335 proc foo() = var bar = "foo" @@ -18,7 +21,7 @@ proc foo() = foo() # #376 -when not defined(JS): +when not defined(js): proc foo(val: float): string = "no js " & $val else: proc foo(val: float): string = "js " & $val |