Reset closure iter exception before rethrowing
This commit is contained in:
parent
d31404ac27
commit
721ca3e830
2 changed files with 6 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue