-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapiTest.js
More file actions
133 lines (99 loc) · 2.14 KB
/
Copy pathapiTest.js
File metadata and controls
133 lines (99 loc) · 2.14 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
// One Line Comment
/* Multi
* Line
* Comment
*/
//var a = 4;
//var b = 2;
//var result = a + b;
function indirect_return(a)
{
return a;
}
function my_function(a)
{
//var result;
//
//result = 20;
return (indirect_return(a) + 5.31) * 0.2345;
}
var a = 0;
var b = 256;
var c;
var result = 2;
var stuckRef = globalThis;
label loop;
var test_plugin_function = globalThis["test_plugin_function"];
var max_iteration = 1000000;
class my_super_super_class {
var super_super_value = 0;
function super_super_change(a)
{
globalThis.test_plugin_function(super);
super_super_value = a;
}
function constructor()
{
super_super_change(5 * 5);
}
}
class my_super_class extends my_super_super_class {
var super_value = 0;
function super_change(a)
{
globalThis.test_plugin_function(super);
super_value = a;
}
function constructor()
{
super.constructor();
super_change(10 * 10);
}
}
class my_class extends my_super_class {
var default_value = 0;
function num_change(a)
{
globalThis.test_plugin_function(super);
default_value = a;
}
function constructor()
{
super.constructor();
num_change(20 * 20);
}
}
var my_a = new my_class(), my_b = new my_class();
my_a.self = my_a;
my_b.self = my_b;
my_a.loop = my_b;
my_b.loop = my_a;
//var my_instance = new my_class();
//
//my_class.default_value = 393093902390;
//
//my_instance.super_super_change(439032093903);
//
//test_plugin_function(my_instance, my_instance.default_value, my_instance.super_value, my_instance.super_super_value);
return;
for (var index = 0; index <= max_iteration; index+=max_iteration/100)
{
globalThis[index] = my_function(index);
test_plugin_function(globalThis[index]);
}
globalThis[0.123456789123456789] = 0;
globalThis[0.123456789] = 0;
globalThis[0.5555] = 0;
globalThis[0.5] = 0;
globalThis[0.25] = 0;
globalThis[0.125] = 0;
globalThis[0] = 0;
globalThis.something_that.do_not_exists = 0;
//if (result)
//{
// test_plugin_function(((a % b) + 1) == b, a, b);
//}
//else
//{
// goto end_thing;
//}