node-source-map-support/browserify-test/script.coffee
2013-07-21 19:01:25 -07:00

13 lines
233 B
CoffeeScript

(require '../source-map-support').install()
foo = -> throw new Error 'foo'
try
foo()
catch e
if /\bscript\.coffee\b/.test e.stack
document.write 'Test passed'
else
document.write 'Test failed'
console.log e.stack