@@ -14166,7 +14166,7 @@ Compressor.prototype.compress = function(node) {
|
|||||||
stat.walk(find_return);
|
stat.walk(find_return);
|
||||||
return !abort;
|
return !abort;
|
||||||
}) && node.bcatch) node.bcatch.walk(find_return);
|
}) && node.bcatch) node.bcatch.walk(find_return);
|
||||||
return true;
|
return;
|
||||||
}
|
}
|
||||||
if (node instanceof AST_Scope) return true;
|
if (node instanceof AST_Scope) return true;
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -2207,3 +2207,43 @@ issue_5754: {
|
|||||||
]
|
]
|
||||||
node_version: ">=10"
|
node_version: ">=10"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
issue_5842: {
|
||||||
|
options = {
|
||||||
|
inline: true,
|
||||||
|
}
|
||||||
|
input: {
|
||||||
|
var a = "FAIL";
|
||||||
|
(async function*() {
|
||||||
|
(function() {
|
||||||
|
try {
|
||||||
|
try {
|
||||||
|
return console;
|
||||||
|
} finally {
|
||||||
|
a = "PASS";
|
||||||
|
}
|
||||||
|
} catch (e) {}
|
||||||
|
FAIL;
|
||||||
|
})();
|
||||||
|
})().next();
|
||||||
|
console.log(a);
|
||||||
|
}
|
||||||
|
expect: {
|
||||||
|
var a = "FAIL";
|
||||||
|
(async function*() {
|
||||||
|
(function() {
|
||||||
|
try {
|
||||||
|
try {
|
||||||
|
return console;
|
||||||
|
} finally {
|
||||||
|
a = "PASS";
|
||||||
|
}
|
||||||
|
} catch (e) {}
|
||||||
|
FAIL;
|
||||||
|
})();
|
||||||
|
})().next();
|
||||||
|
console.log(a);
|
||||||
|
}
|
||||||
|
expect_stdout: "PASS"
|
||||||
|
node_version: ">=10"
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user