Files
2018-08-02 17:53:23 +01:00

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;
}
})();