summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2022-03-25 17:46:42 +0800
committerGitHub <noreply@github.com>2022-03-25 10:46:42 +0100
commitafbcba909b37b8c06250b141ddb9da4bf5bb9922 (patch)
tree2fc7e9f957e2f437197fa1f363cd5109ab2ba9c0 /lib/system
parent400e0260b854f34a91af47bbe0a1b1c9d112e51b (diff)
downloadNim-afbcba909b37b8c06250b141ddb9da4bf5bb9922.tar.gz
remove unnecessary framePtr code (#19645)
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/jssys.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/system/jssys.nim b/lib/system/jssys.nim
index 6608a2927..00a4a8ab6 100644
--- a/lib/system/jssys.nim
+++ b/lib/system/jssys.nim
@@ -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`);