Files
test-repo/tests/format/js/optional-chaining/eval.js
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
255 B
JavaScript
Raw Normal View History

// https://github.com/babel/babel/pull/11850
let foo;
/* indirect eval calls */
eval?.(foo);
(eval)?.(foo);
eval?.()();
eval?.().foo;
/* direct eval calls */
eval()?.();
eval()?.foo;
/* plain function calls */
foo.eval?.(foo);
eval.foo?.(foo);