* [std/re] make interface consistent * tiny * revert * close #18129 add setCurrentException * changelog entry
This commit is contained in:
parent
c0e8199acc
commit
c2e3dc0ed1
3 changed files with 12 additions and 1 deletions
|
|
@ -69,6 +69,9 @@ proc getCurrentExceptionMsg*(): string =
|
|||
return $msg
|
||||
return ""
|
||||
|
||||
proc setCurrentException*(exc: ref Exception) =
|
||||
lastJSError = cast[PJSError](exc)
|
||||
|
||||
proc auxWriteStackTrace(f: PCallFrame): string =
|
||||
type
|
||||
TempFrame = tuple[procname: cstring, line: int, filename: cstring]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue