33c3e9e2c6
This problem was introduced in 70399e146e
(from PR #23801), which added
a `visitTaggedTemplateExpression` case for `TaggedTemplateExpression`,
before that, it would fallback to the default of `visitNode`. So re-add
that happen in `processTaggedTemplateExpression`.
Since it doesn't hurt, I left a `Debug.checkDefined(property.name)`
instead of `!`-ing it.
Fixes #38558.
12 lines
222 B
TypeScript
12 lines
222 B
TypeScript
//@target: es3
|
|
|
|
// Originated from #38558
|
|
|
|
const f = _ => (..._) => "";
|
|
|
|
f({ ...{ x: 0 } })``;
|
|
f({ ...{ x: 0 } })`x`;
|
|
f({ ...{ x: 0 } })`x${f}x`;
|
|
f({ ...{ x: 0 }, y: (() => 1)() })``;
|
|
f({ x: (() => 1)(), ...{ y: 1 } })``;
|