bugfix: finally sections are executed before return/break
This commit is contained in:
parent
f182d8d708
commit
0a57f662fa
7 changed files with 71 additions and 49 deletions
|
|
@ -1232,6 +1232,9 @@ template accumulateResult*(iter: expr) =
|
|||
result = @[]
|
||||
for x in iter: add(result, x)
|
||||
|
||||
# we have to compute this here before turning it off in except.nim anyway ...
|
||||
const nimrodStackTrace = compileOption("stacktrace")
|
||||
|
||||
{.push checks: off, line_dir: off, debugger: off.}
|
||||
# obviously we cannot generate checking operations here :-)
|
||||
# because it would yield into an endless recursion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue