File: script.coffee

package info (click to toggle)
ts-node 10.9.2%2B~cs64.13.20-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,388 kB
  • sloc: javascript: 15,071; sh: 83; makefile: 15; xml: 9
file content (12 lines) | stat: -rw-r--r-- 286 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
sourceMapSupport.install()

foo = -> throw new Error 'foo'

try
  foo()
catch e
  if /\bscript\.coffee\b/.test e.stack
    document.body.appendChild document.createTextNode 'Test passed'
  else
    document.body.appendChild document.createTextNode 'Test failed'
    console.log e.stack