PHP codegen improvements
This commit is contained in:
parent
6e6c15081d
commit
746132d696
3 changed files with 6 additions and 3 deletions
|
|
@ -121,7 +121,10 @@ proc raiseException(e: ref Exception, ename: cstring) {.
|
|||
when not defined(noUnhandledHandler):
|
||||
if excHandler == 0:
|
||||
unhandledException(e)
|
||||
asm "throw `e`;"
|
||||
when defined(nimphp):
|
||||
asm """throw new Exception($`e`["message"]);"""
|
||||
else:
|
||||
asm "throw `e`;"
|
||||
|
||||
proc reraiseException() {.compilerproc, asmNoStackFrame.} =
|
||||
if lastJSError == nil:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue