forked from facebook/hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
input1-p.js.txt
56 lines (56 loc) · 882 Bytes
/
input1-p.js.txt
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
var x = (a + b) * c;
let arr = [];
for(let i = 0; i < 3000; ++i) {
arr.push({x: Math.floor(Math.random() * 10000)});
}
print("start");
arr.sort((a, b) => a.x > b.x ? 1 : -1);
print("done");
+(+x);
a + (+x);
a + (+b * 10);
a - (-10);
do
++i;
while (i < 10);
for(a in b in c)
++a;
for(;;) {}
try {
1;
} catch (e) {}
a1:
switch (1) {
case 1:
case 2:
++x;
break a1;
default:
--x;
case 5:
{
++a;
--b;
break;
}
}
/ab\/.'/gi;
x = [[20], 0];
for((x in 1);;) {}
var x = x => ({y: 20});
`a$\{b${x + 1}c${{f: 10}}`;
a`b``c`;
(function foo(){});
(function foo(){}());
(function foo(){} + "a" + "b");
(function foo(){} && "a" || "b");
(function foo(){} ? "a" : "b");
(function foo(){} = 10);
(function foo(){}--);
(function foo(){}.x);
(function foo(){}[x]);
(function foo(){} || 1) && 2;
(function foo(){}`templ\`\n`);
(class foo {});
({x: 10});
({x, y} = foo());