scratch.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. function foo() {
  2. console.log("lol, i don't do anything")
  3. }
  4. function foo2() {
  5. foo()
  6. console.log('i called foo')
  7. }
  8. function broken() {
  9. try {
  10. /*fkjdsahfdhskfhdsahfudshafuoidashfudsa*/ fdasfds[0]; // i throw an error h sadhf hadsfdsakf kl;dsjaklf jdklsajfk ljds;klafldsl fkhdas;hf hdsaf hdsalfhjldksahfljkdsahfjkl dhsajkfl hdklsahflkjdsahkfj hdsjakhf dkashfl diusafh kdsjahfkldsahf jkdashfj khdasjkfhdjksahflkjdhsakfhjdksahfjkdhsakf hdajskhf kjdash kjfads fjkadsh jkfdsa jkfdas jkfdjkas hfjkdsajlk fdsajk fjkdsa fjdsa fdkjlsa fjkdaslk hfjlkdsah fhdsahfui
  11. }catch(e) {
  12. Raven.captureException(e);
  13. }
  14. }
  15. function ready() {
  16. document.getElementById('test').onclick = broken;
  17. }
  18. function foo3() {
  19. document.getElementById('crap').value = 'barfdasjkfhoadshflkaosfjadiosfhdaskjfasfadsfads';
  20. }
  21. function somethingelse() {
  22. document.getElementById('somethingelse').value = 'this is some realy really long message just so our minification is largeeeeeeeeee!';
  23. }
  24. function derp() {
  25. fdas[0];
  26. }
  27. function testOptions() {
  28. Raven.context({tags: {foo: 'bar'}}, function() {
  29. throw new Error('foo');
  30. });
  31. }
  32. function throwString() {
  33. throw 'oops';
  34. }