Closed gkovacs closed 7 years ago
Destructuring loop variables should be converted to ObjectPattern
or ArrayPattern
.
With new ES syntax, it should generate this:
foo = function () {
let res$;
return do {
res$ = {};
for (let {
key,
val
} of data) res$[key] = val;
res$;
};
};
doesn't appear to compile with livescript-next. error:
with standard livescript, this correctly generates: