File tree Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Original file line number Diff line number Diff line change @@ -14166,7 +14166,7 @@ Compressor.prototype.compress = function(node) {
14166
14166
stat.walk(find_return);
14167
14167
return !abort;
14168
14168
}) && node.bcatch) node.bcatch.walk(find_return);
14169
- return true ;
14169
+ return;
14170
14170
}
14171
14171
if (node instanceof AST_Scope) return true;
14172
14172
}));
Original file line number Diff line number Diff line change @@ -2207,3 +2207,43 @@ issue_5754: {
2207
2207
]
2208
2208
node_version: ">=10"
2209
2209
}
2210
+
2211
+ issue_5842: {
2212
+ options = {
2213
+ inline : true ,
2214
+ }
2215
+ input: {
2216
+ var a = "FAIL" ;
2217
+ ( async function * ( ) {
2218
+ ( function ( ) {
2219
+ try {
2220
+ try {
2221
+ return console ;
2222
+ } finally {
2223
+ a = "PASS" ;
2224
+ }
2225
+ } catch ( e ) { }
2226
+ FAIL ;
2227
+ } ) ( ) ;
2228
+ } ) ( ) . next ( ) ;
2229
+ console . log ( a ) ;
2230
+ }
2231
+ expect: {
2232
+ var a = "FAIL" ;
2233
+ ( async function * ( ) {
2234
+ ( function ( ) {
2235
+ try {
2236
+ try {
2237
+ return console ;
2238
+ } finally {
2239
+ a = "PASS" ;
2240
+ }
2241
+ } catch ( e ) { }
2242
+ FAIL ;
2243
+ } ) ( ) ;
2244
+ } ) ( ) . next ( ) ;
2245
+ console . log ( a ) ;
2246
+ }
2247
+ expect_stdout: "PASS"
2248
+ node_version: ">=10"
2249
+ }
You can’t perform that action at this time.
0 commit comments