use lent (#18638)
This commit is contained in:
parent
0d3af5454b
commit
a7e622267e
1 changed files with 2 additions and 2 deletions
|
|
@ -521,10 +521,10 @@ proc getStackTrace(e: ref Exception): string =
|
||||||
else:
|
else:
|
||||||
result = ""
|
result = ""
|
||||||
|
|
||||||
proc getStackTraceEntries*(e: ref Exception): seq[StackTraceEntry] =
|
proc getStackTraceEntries*(e: ref Exception): lent seq[StackTraceEntry] =
|
||||||
## Returns the attached stack trace to the exception `e` as
|
## Returns the attached stack trace to the exception `e` as
|
||||||
## a `seq`. This is not yet available for the JS backend.
|
## a `seq`. This is not yet available for the JS backend.
|
||||||
shallowCopy(result, e.trace)
|
e.trace
|
||||||
|
|
||||||
proc getStackTraceEntries*(): seq[StackTraceEntry] =
|
proc getStackTraceEntries*(): seq[StackTraceEntry] =
|
||||||
## Returns the stack trace entries for the current stack trace.
|
## Returns the stack trace entries for the current stack trace.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue