You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
367 B
14 lines
367 B
define ['browser-source-map-support'], (sourceMapSupport) ->
|
|
sourceMapSupport.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
|