remove unnecessary framePtr code (#19645)

(cherry picked from commit afbcba909b)
This commit is contained in:
flywind
2022-03-25 17:46:42 +08:00
committed by narimiran
parent ea69f04cc7
commit 31f7b17dd0
2 changed files with 8 additions and 4 deletions

View File

@@ -130,7 +130,8 @@ proc unhandledException(e: ref Exception) {.
when NimStackTrace:
add(buf, rawWriteStackTrace())
let cbuf = cstring(buf)
framePtr = nil
when NimStackTrace:
framePtr = nil
{.emit: """
if (typeof(Error) !== "undefined") {
throw new Error(`cbuf`);