summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-07-05 18:04:07 +0200
committerGitHub <noreply@github.com>2021-07-05 18:04:07 +0200
commit1bed7773146d6acf704b0ae5cfe62455f7a127a1 (patch)
tree6f9c24b048094c40569f7c8e6eaadfc93638a6e2 /lib
parentffa638ed5023834a7a5040a54c6cfde550d68054 (diff)
downloadNim-1bed7773146d6acf704b0ae5cfe62455f7a127a1.tar.gz
fixes #18411 (#18432) [backport:1.4]
Diffstat (limited to 'lib')
-rw-r--r--lib/system/excpt.nim4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim
index 5b7d4d49f..9f65db2fe 100644
--- a/lib/system/excpt.nim
+++ b/lib/system/excpt.nim
@@ -446,9 +446,7 @@ proc raiseExceptionAux(e: sink(ref Exception)) {.nodestroy.} =
       pushCurrentException(e)
       {.emit: "throw `e`;".}
   elif defined(nimQuirky) or gotoBasedExceptions:
-    # XXX This check should likely also be done in the setjmp case below.
-    if e != currException:
-      pushCurrentException(e)
+    pushCurrentException(e)
     when gotoBasedExceptions:
       inc nimInErrorMode
   else: