mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-15 15:44:14 +00:00
use lent (#18638)
This commit is contained in:
@@ -521,10 +521,10 @@ proc getStackTrace(e: ref Exception): string =
|
||||
else:
|
||||
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
|
||||
## a `seq`. This is not yet available for the JS backend.
|
||||
shallowCopy(result, e.trace)
|
||||
e.trace
|
||||
|
||||
proc getStackTraceEntries*(): seq[StackTraceEntry] =
|
||||
## Returns the stack trace entries for the current stack trace.
|
||||
|
||||
Reference in New Issue
Block a user