remove unnecessary framePtr code (#19645)

This commit is contained in:
flywind 2022-03-25 17:46:42 +08:00 • committed by GitHub
commit afbcba909b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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`);