This commit is contained in:
parent
3c36aed100
commit
c245cfc1fd
2 changed files with 14 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ proc isNimException(): bool {.asmNoStackFrame.} =
|
|||
else:
|
||||
asm "return `lastJSError`.m_type;"
|
||||
|
||||
proc getCurrentException*(): ref Exception =
|
||||
proc getCurrentException*(): ref Exception {.compilerRtl, benign.} =
|
||||
if isNimException(): result = cast[ref Exception](lastJSError)
|
||||
|
||||
proc getCurrentExceptionMsg*(): string =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue