Changelog: swc v1.1.27

Bugfix#

subscripts with a new.target (#675)#

From now on, swc can correcrly parse the codes like

Object.setPrototypeOf(this, new.target.prototype);

nested loop (#682)#

block_scoping pass of swc had a bug. Ut's fixed and nested loops work correctly.

function foo(parts) {
let match = null;
for (let i = 1; i >= 0; i--) {
for (let j = 0; j >= 0; j--) {
match = parts[i][j];
if (match) {
break;
}
}
if (match) {
break;
}
}
return match;
}
foo();