forked from getsentry/sentry-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scratch.js
38 lines (31 loc) · 1.13 KB
/
scratch.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
function foo() {
console.log("lol, i don't do anything")
}
function foo2() {
foo()
console.log('i called foo')
}
function broken() {
try {
/*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
}catch(e) {
Raven.captureException(e);
}
}
function ready() {
document.getElementById('test').onclick = broken;
}
function foo3() {
document.getElementById('crap').value = 'barfdasjkfhoadshflkaosfjadiosfhdaskjfasfadsfads';
}
function somethingelse() {
document.getElementById('somethingelse').value = 'this is some realy really long message just so our minification is largeeeeeeeeee!';
}
function derp() {
fdas[0];
}
function testOptions() {
Raven.context({tags: {foo: 'bar'}}, function() {
throw new Error('foo');
});
}