webpack 5.99.1 → 5.99.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2312,18 +2312,23 @@ class JavascriptParser extends Parser {
|
|
2312
2312
|
this.scope.inTry = false;
|
2313
2313
|
}
|
2314
2314
|
|
2315
|
-
|
2316
|
-
|
2317
|
-
}
|
2315
|
+
const tryTerminated = this.scope.terminated;
|
2316
|
+
this.scope.terminated = undefined;
|
2318
2317
|
|
2319
|
-
|
2318
|
+
if (statement.handler) this.walkCatchClause(statement.handler);
|
2320
2319
|
|
2320
|
+
const handlerTerminated = this.scope.terminated;
|
2321
2321
|
this.scope.terminated = undefined;
|
2322
2322
|
|
2323
|
-
if (statement.handler) this.walkCatchClause(statement.handler);
|
2324
2323
|
if (statement.finalizer) this.walkStatement(statement.finalizer);
|
2325
2324
|
|
2326
|
-
|
2325
|
+
if (
|
2326
|
+
!this.scope.terminated &&
|
2327
|
+
tryTerminated &&
|
2328
|
+
(statement.handler ? handlerTerminated : true)
|
2329
|
+
) {
|
2330
|
+
this.scope.terminated = tryTerminated;
|
2331
|
+
}
|
2327
2332
|
}
|
2328
2333
|
|
2329
2334
|
/**
|
@@ -3016,7 +3021,7 @@ class JavascriptParser extends Parser {
|
|
3016
3021
|
this.blockPreWalkStatement(catchClause.body);
|
3017
3022
|
this.prevStatement = prev;
|
3018
3023
|
this.walkStatement(catchClause.body);
|
3019
|
-
});
|
3024
|
+
}, true);
|
3020
3025
|
}
|
3021
3026
|
|
3022
3027
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "webpack",
|
3
|
-
"version": "5.99.
|
3
|
+
"version": "5.99.2",
|
4
4
|
"author": "Tobias Koppers @sokra",
|
5
5
|
"description": "Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.",
|
6
6
|
"license": "MIT",
|