node-source-map-support/browserify-test/script.coffee
2013-11-13 21:16:21 -08:00

13 lines
303 B
CoffeeScript

(require '../source-map-support').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