This code:
console.log({
Right: () => true,
[1 + 1]: 2
})
Produces this output:
var obj;
console.log(( obj = {
Right: function () { return true
}; }, obj[1 + 1] = 2, obj ))
... which has a semicolon inside an object literal. Probably once again text is inserted in the wrong order (the closing brace of the arrow relative to the semicolon for the return statement).
This code:
Produces this output:
... which has a semicolon inside an object literal. Probably once again text is inserted in the wrong order (the closing brace of the arrow relative to the semicolon for the return statement).