-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.js
60 lines (48 loc) · 994 Bytes
/
sample.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
58
59
60
class MyCls {
numberField = 5;
constructor() {
this.numberField = 10;
}
someMethod() {
console.log("a");
}
anotherMethod() {
console.log("a");
}
}
function test() {
metaexec(null, (capture) => [
(it) => false,
all([(it) => __VI_PLACEHOLDER_abc], [(it) => true]),
]);
}
("enable sandblocks");
let a = 12;
function hello(b) {
() => ({ sbExample: "example1", args: [123], self: null });
const db = pool.connect();
db.query(sql`SELECT * FROM \`events\` WHERE id = 123`);
["slider", 0, 100, 1, 30][4];
const table = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9],
];
const a = "asdadfsd".length + 21;
console.log(b);
sbWatch(
[
"sbWatch",
((e) => (
fetch("http://localhost:3000/sb-watch", {
method: "POST",
body: JSON.stringify({ id: 313353399, e }),
headers: { "Content-Type": "application/json" },
}),
e
))("adasd"),
][1],
12,
);
return a;
}