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