fix corner case in inline (#5635)

fixes #5634
This commit is contained in:
Alex Lam S.L
2022-08-29 17:45:35 +01:00
committed by GitHub
parent 7c52af0dec
commit 15b608f74c
2 changed files with 152 additions and 1 deletions

View File

@@ -13729,7 +13729,7 @@ Compressor.prototype.compress = function(node) {
}));
return !abort;
};
} else if (in_await && !is_async(fn) || in_async_generator(scope)) {
} else if (in_await || is_async(fn) || in_async_generator(scope)) {
verify_body = function(stat) {
var abort = false;
var find_return = new TreeWalker(function(node) {