Guard against null exception (#10162)

This commit is contained in:
rec 2019-01-04 15:05:03 +01:00 • committed by Andreas Rumpf
commit ba7d33b4e4
2 changed files with 4 additions and 1 deletions

View file

@ -9,6 +9,9 @@ js 3.14
# This file tests the JavaScript generator
doAssert getCurrentException() == nil
doAssert getCurrentExceptionMsg() == ""
# #335
proc foo() =
var bar = "foo"