forked from koush/quickjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.js
57 lines (50 loc) · 971 Bytes
/
test.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import {boops} from './test2.js'
boops();
const gg = 9;
function foo (t) {
var a = 55;
var b = 33;
var c = {
d: true,
e: 'hello',
f: 34.55,
};
var arr2 = new Uint8Array(10000);
var arr = [];
for (var i = 0; i < 10000; i++) {
arr.push(i);
arr2[i] = i;
}
function noob() {
console.log('f;asdsad`')
console.log(a);
console.log(t);
console.log('supsups')
console.log('ubgasdsad')
}
noob();
}
function bar() {
foo(3);
console.log('asdsad');
console.log('about to throw!');
try {
throw new Error('whoops');
}
catch (e) {
console.log('caught a whoops');
}
}
class Blub {
constructor() {
this.peeps = 3;
}
jib() {
console.log(this);
bar();
}
}
var blub = new Blub();
blub.jib();
// note that a breakpoint here will not work, tail call breakpoints fail?
blub.jib();