first implementation of the new --seqsv2 switch
This commit is contained in:
parent
ed2fb36bc6
commit
0eae2217b6
7 changed files with 22 additions and 15 deletions
|
|
@ -439,7 +439,7 @@ proc getStackTrace(e: ref Exception): string =
|
|||
proc getStackTraceEntries*(e: ref Exception): seq[StackTraceEntry] =
|
||||
## Returns the attached stack trace to the exception ``e`` as
|
||||
## a ``seq``. This is not yet available for the JS backend.
|
||||
when not defined(gcDestructors):
|
||||
when not defined(nimSeqsV2):
|
||||
shallowCopy(result, e.trace)
|
||||
else:
|
||||
result = move(e.trace)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue