WIP: nothing works

This commit is contained in:
Andreas Rumpf 2018-08-05 09:38:14 +02:00
commit abe0725ab1
3 changed files with 39 additions and 12 deletions

View file

@ -428,10 +428,11 @@ proc getStackTrace(e: ref Exception): string =
else:
result = ""
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.
shallowCopy(result, e.trace)
when not defined(gcDestructors):
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.
shallowCopy(result, e.trace)
when defined(nimRequiresNimFrame):
proc stackOverflow() {.noinline.} =