This commit is contained in:
flywind
2021-08-09 02:44:14 +08:00
committed by GitHub
parent 0d3af5454b
commit a7e622267e

View File

@@ -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.