webpack 5.99.1 → 5.99.3
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.
@@ -2200,6 +2200,9 @@ class JavascriptParser extends Parser {
|
|
2200
2200
|
this.inExecutedPath(false, () => {
|
2201
2201
|
this.walkExpression(statement.test);
|
2202
2202
|
this.walkNestedStatement(statement.consequent);
|
2203
|
+
});
|
2204
|
+
|
2205
|
+
this.inExecutedPath(true, () => {
|
2203
2206
|
if (statement.alternate) {
|
2204
2207
|
this.walkNestedStatement(statement.alternate);
|
2205
2208
|
}
|
@@ -2312,18 +2315,23 @@ class JavascriptParser extends Parser {
|
|
2312
2315
|
this.scope.inTry = false;
|
2313
2316
|
}
|
2314
2317
|
|
2315
|
-
|
2316
|
-
|
2317
|
-
}
|
2318
|
+
const tryTerminated = this.scope.terminated;
|
2319
|
+
this.scope.terminated = undefined;
|
2318
2320
|
|
2319
|
-
|
2321
|
+
if (statement.handler) this.walkCatchClause(statement.handler);
|
2320
2322
|
|
2323
|
+
const handlerTerminated = this.scope.terminated;
|
2321
2324
|
this.scope.terminated = undefined;
|
2322
2325
|
|
2323
|
-
if (statement.handler) this.walkCatchClause(statement.handler);
|
2324
2326
|
if (statement.finalizer) this.walkStatement(statement.finalizer);
|
2325
2327
|
|
2326
|
-
|
2328
|
+
if (
|
2329
|
+
!this.scope.terminated &&
|
2330
|
+
tryTerminated &&
|
2331
|
+
(statement.handler ? handlerTerminated : true)
|
2332
|
+
) {
|
2333
|
+
this.scope.terminated = tryTerminated;
|
2334
|
+
}
|
2327
2335
|
}
|
2328
2336
|
|
2329
2337
|
/**
|
@@ -3016,7 +3024,7 @@ class JavascriptParser extends Parser {
|
|
3016
3024
|
this.blockPreWalkStatement(catchClause.body);
|
3017
3025
|
this.prevStatement = prev;
|
3018
3026
|
this.walkStatement(catchClause.body);
|
3019
|
-
});
|
3027
|
+
}, true);
|
3020
3028
|
}
|
3021
3029
|
|
3022
3030
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "webpack",
|
3
|
-
"version": "5.99.
|
3
|
+
"version": "5.99.3",
|
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",
|