summary refs log blame commit diff stats
path: root/tests/js/t7224.nim
blob: be9d0ae9c6d274ea19c3e434c869077e3f4bf2a2 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                  
 













                                                
 

                       
discard """
  cmd: "nim $target $options --stackTrace:on --lineTrace:on $file"
  outputsub: '''
t7224.aaa, line: 21
t7224.bbb, line: 18
t7224.ccc, line: 15
t7224.ddd, line: 12
'''
"""

proc ddd() =
  raise newException(IOError, "didn't do stuff")

proc ccc() =
  ddd()

proc bbb() =
  ccc()

proc aaa() =
  bbb()

try:
  aaa()

except IOError as e:
  echo getStackTrace(e)