Reset closure iter exception before rethrowing

This commit is contained in:
Yuriy Glukhov 2019-08-16 17:26:00 +02:00
commit 721ca3e830
2 changed files with 6 additions and 8 deletions

View file

@ -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