1 | sourceMapSupport.install()
|
2 |
|
3 | foo = -> throw new Error 'foo'
|
4 |
|
5 | try
|
6 | foo()
|
7 | catch e
|
8 | if /\bscript\.coffee\b/.test e.stack
|
9 | document.body.appendChild document.createTextNode 'Test passed'
|
10 | else
|
11 | document.body.appendChild document.createTextNode 'Test failed'
|
12 | console.log e.stack
|