Skip to content

Instantly share code, notes, and snippets.

View vdeturckheim's full-sized avatar
😇
Living the JS life

Vladimir de Turckheim vdeturckheim

😇
Living the JS life
View GitHub Profile
var exec = function() {};
exec.bind(null)();
function exec() {
try {} catch (e) {}
}
function exec() {
try {} finally {}
}
function exec() {
try {} catch (e) {} finally {}
}
function exec() {
eval('var foo = 5;');
}
function exec() {
arguments = 'foo';
}
function* exec() {
yield 0;
}
function exec() {
return arguments;
}
function test() {
for (let i = 0; i < 0; i++) {
const x = __lookupGetter__; // `__lookupGetter__` and
}
const self = this; // `this` should both be present for this to happen
}
function test1() {
var _arguments = arguments;
if (0 === 0) { // anything evaluating to true, except a number or `true`
_arguments = [0]; // Unsupported phi use of arguments
}
}