Files
test-repo/tests/js/optional-chaining/eval.js
T
dependabot[bot]andfisker 8f58bffecf Build(deps): Bump @babel/parser from 7.10.5 to 7.11.0 (#8869)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-08-03 21:13:19 +08:00

25 lines
255 B
JavaScript

// 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);