diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system/jssys.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/jssys.nim b/lib/system/jssys.nim index cc69dc503..f23be2d78 100644 --- a/lib/system/jssys.nim +++ b/lib/system/jssys.nim @@ -157,10 +157,10 @@ proc reraiseException() {.compilerproc, asmNoStackFrame.} = asm "throw lastJSError;" -proc raiseOverflow {.exportc: "raiseOverflow", noreturn.} = +proc raiseOverflow {.exportc: "raiseOverflow", noreturn, compilerProc.} = raise newException(OverflowError, "over- or underflow") -proc raiseDivByZero {.exportc: "raiseDivByZero", noreturn.} = +proc raiseDivByZero {.exportc: "raiseDivByZero", noreturn, compilerProc.} = raise newException(DivByZeroError, "division by zero") proc raiseRangeError() {.compilerproc, noreturn.} = |