mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 09:54:49 +00:00
* add simple writeStackTrace for JS backend * add testcase for writeStackTrace * changelog
13 lines
249 B
Nim
13 lines
249 B
Nim
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()
|