script.js 467 B

1234567891011121314151617181920212223242526
  1. // Generated by CoffeeScript 1.7.1
  2. (function() {
  3. var e, foo;
  4. sourceMapSupport.install();
  5. foo = function() {
  6. throw new Error('foo');
  7. };
  8. try {
  9. foo();
  10. } catch (_error) {
  11. e = _error;
  12. if (/\bscript\.coffee\b/.test(e.stack)) {
  13. document.body.appendChild(document.createTextNode('Test passed'));
  14. } else {
  15. document.body.appendChild(document.createTextNode('Test failed'));
  16. console.log(e.stack);
  17. }
  18. }
  19. }).call(this);