node-source-map-support/browserify-test/script.coffee

13 lines
303 B
CoffeeScript
Raw Normal View History

2013-07-22 10:01:25 +08:00
(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'
2013-07-22 10:01:25 +08:00
else
document.body.appendChild document.createTextNode 'Test failed'
2013-07-22 10:01:25 +08:00
console.log e.stack