Noah Lemen 2db0c3ad1d linting: disallow t.identifier("undefined") in plugins (#6096)
* add new custom eslint rule, replace remaining t.identifier("undefined") with buildUndefinedNode(), update tests

* change no-undefined-identifier reporting descriptor
2017-08-24 15:43:01 -04:00

10 lines
141 B
JavaScript

function foo() {
return bar.apply(void 0, arguments);
}
function bar(one, two, three) {
return [one, two, three];
}
foo("foo", "bar");