mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
remove unnecessary framePtr code (#19645)
(cherry picked from commit afbcba909b)
This commit is contained in:
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user