Invalid code generation: return + computed property
With this input:
function f (id, value) {
return { [id]: value }
}
The generated output has syntax errors:
function f (id, value) {
return ( obj = {}
var obj;, obj[id] = value, obj )
}
The correct output is something more like this:
function f (id, value) {
return ( obj = {}, obj[id] = value, obj )
var obj;
}
The only change is to move var obj;
outside the parentheses.
Edited by username-removed-928363