summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorYuriy Glukhov <yuriy.glukhov@gmail.com>2019-08-16 17:26:00 +0200
committerYuriy Glukhov <yuriy.glukhov@gmail.com>2019-08-16 17:26:00 +0200
commit721ca3e83087c6c4a7299102d04ba912d4f8dbae (patch)
tree6bc456090f8292644b8fa467929e52c45c733851 /lib/system
parentd31404ac27503e87ae82544d7efa984f565199f7 (diff)
downloadNim-721ca3e83087c6c4a7299102d04ba912d4f8dbae.tar.gz
Reset closure iter exception before rethrowing
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/excpt.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim
index 767cf3d0d..0898ad0fd 100644
--- a/lib/system/excpt.nim
+++ b/lib/system/excpt.nim
@@ -136,8 +136,7 @@ proc popCurrentExceptionEx(id: uint) {.compilerRtl.} =
     prev.up = cur.up
 
 proc closureIterSetupExc(e: ref Exception) {.compilerproc, inline.} =
-  if not e.isNil:
-    currException = e
+  currException = e
 
 # some platforms have native support for stack traces:
 const