mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
7b4baff16c
Reject `new import(...).prop`, `new import.source(...).prop`, and `new import.defer(...).prop` by treating member access on an unparenthesized import expression as invalid after `new`. Fixes #23458
4 lines
88 B
TypeScript
4 lines
88 B
TypeScript
new import('x').prop!;
|
|
new import('x').prop as Foo;
|
|
new import('x').prop satisfies Foo;
|