Closed
Description
Something like
`${ { hello: 10; world: 20 } }HELLO`
will get emitted as
{ hello: 10; world: 20 } + "HELLO"
As an expresssion statement, the former evaluates to "[object Object]HELLO"
while the latter evaluates to NaN
.
This is because the former gets parsed as:
// block body
{
hello: 10;
world: 20;
};
"HELLO";