-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimple_example.js
More file actions
57 lines (41 loc) · 1.46 KB
/
simple_example.js
File metadata and controls
57 lines (41 loc) · 1.46 KB
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
require('w');
class LivechatRead {
isOnline() {
return 1;
}
}
c = function() {
}
const arrowFunction = () => {
let _ = topLevelReadMock.getLivechatReader().isOnline;
}
(function iife() {
const arrowFunctionReturn = arrowFunction;
})();
const topLevelReadMock = { getLivechatReader() { return new LivechatRead() } }
(() => (0,topLevelReadMock.getLivechatReader().isOnline)() ? 1 : 2)
function test() {
while (topLevelReadMock.getLivechatReader().isOnline()) {
continue;
}
}
for (let i = topLevelReadMock.getLivechatReader().isOnline; i < topLevelReadMock.getLivechatReader().isOnline(); i = topLevelReadMock.getLivechatReader().isOnline()) {
continue;
}
do {
continue;
} while(await topLevelReadMock.getLivechatReader().isOnline());
nonExistentFunctionCall(topLevelReadMock.getLivechatReader().isOnline())
let l, boundIsOnlineCall = topLevelReadMock.getLivechatReader().isOnline().bind();
let { boundIsOnlineAccess } = topLevelReadMock.getLivechatReader().isOnline.bind();
var objectWithDynamicallyNamedProp = {
[topLevelReadMock.getLivechatReader().isOnline()]: function() { return 1; },
namedProp: () => { return 2 },
property: topLevelReadMock.getLivechatReader().isOnline(),
h: i,
iifeProp: (function() { return 'bah' })(),
}
objectWithDynamicallyNamedProp.iife.h = arrowFunction;
objectWithDynamicallyNamedProp[l] = arrowFunction;
throw topLevelReadMock.getLivechatReader().isOnline()
topLevelReadMock.getLivechatReader().isOnline()