Try ({a:1}) .
Just executing {a:1} is not what you think. This is not a literal of an object that should be an expression (for example, on the right side of the destination).
Instead, you have a block , label , and then 1.
{ a: 1 }
Blocks return the result of their evaluation, and labels return the result of the evaluation of the operator following the label, therefore 1 returned.
source share