add simple writeStackTrace for JS backend (#16016)
* add simple writeStackTrace for JS backend * add testcase for writeStackTrace * changelog
This commit is contained in:
parent
3fed85437b
commit
19e224866b
4 changed files with 20 additions and 1 deletions
|
|
@ -1765,7 +1765,7 @@ when notJSnotNims and defined(nimSeqsV2):
|
|||
|
||||
{.pop.}
|
||||
|
||||
when notJSnotNims:
|
||||
when not defined(nimscript):
|
||||
proc writeStackTrace*() {.tags: [], gcsafe, raises: [].}
|
||||
## Writes the current stack trace to ``stderr``. This is only works
|
||||
## for debug builds. Since it's usually used for debugging, this
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue