remove unnecessary framePtr code (#19645)

This commit is contained in:
flywind
2022-03-25 17:46:42 +08:00
committed by GitHub
parent 400e0260b8
commit afbcba909b
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`);