File: script.coffee

package info (click to toggle)
ts-node 10.9.2%2B~cs64.13.20-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,392 kB
  • sloc: javascript: 15,071; sh: 83; makefile: 15; xml: 9
file content (13 lines) | stat: -rw-r--r-- 367 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
define ['browser-source-map-support'], (sourceMapSupport) ->
  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