mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
33 lines
544 B
JavaScript
33 lines
544 B
JavaScript
var o = {
|
|
A: function f(x) {
|
|
'use strict';
|
|
// BAD
|
|
if (!(this instanceof arguments.callee))
|
|
// BAD
|
|
return new arguments.callee(x);
|
|
// BAD
|
|
console.log(f.caller);
|
|
// BAD
|
|
f.arguments;
|
|
this.x = x;
|
|
}
|
|
};
|
|
|
|
var D = class extends function() {
|
|
// BAD
|
|
arguments.callee;
|
|
} {};
|
|
|
|
function g() {
|
|
// OK
|
|
return arguments.caller.length;
|
|
}
|
|
|
|
(function() {
|
|
'use strict';
|
|
function h() {
|
|
var foo = Math.random() > 0.5 ? h : arguments;
|
|
// BAD
|
|
foo.caller;
|
|
}
|
|
})(); |