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
12
tests/js/twritestacktrace.nim
Normal file
12
tests/js/twritestacktrace.nim
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
discard """
|
||||
cmd: "nim js --panics:on $file"
|
||||
output: '''Traceback (most recent call last)
|
||||
twritestacktrace.nim(12) at module twritestacktrace
|
||||
twritestacktrace.nim(10) at twritestacktrace.hello
|
||||
'''
|
||||
"""
|
||||
|
||||
proc hello() =
|
||||
writeStackTrace()
|
||||
|
||||
hello()
|
||||
Loading…
Add table
Add a link
Reference in a new issue