forked from github/codeql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtst.js
More file actions
32 lines (27 loc) · 660 Bytes
/
Copy pathtst.js
File metadata and controls
32 lines (27 loc) · 660 Bytes
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
var o = {
A: function f(x) {
'use strict';
if (!(this instanceof arguments.callee)) // $ Alert
return new arguments.callee(x); // $ Alert
console.log(f.caller); // $ Alert
this.y = f.arguments; // $ Alert
this.x = x;
}
};
var D = class extends function() {
return arguments.callee; // $ Alert
} {};
function g() {
return arguments.caller.length;
}
(function() {
'use strict';
function h() {
var foo = Math.random() > 0.5 ? h : arguments;
return foo.caller; // $ Alert
}
})();
(function() {
'use strict';
arguments.caller; // OK - avoid duplicate alert from useless-expression
})();