mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
33a43f85b1
swc_ecma_minifier: - Implement more rules. swc_ecma_transforms_base: - `resolver`: Fix syntax context of catch block. swc_ecma_transforms_optimization: - `expr_simplifier`: Fix a bug related to `this` of call expressions. - `dead_branch_remover`: Don't reduce switch cases if test is now known. - `dead_branch_remover`: Don't break `&&`.
8 lines
90 B
JavaScript
8 lines
90 B
JavaScript
var a = "FAIL";
|
|
try {
|
|
throw 1;
|
|
} catch (args) {
|
|
var a = "PASS";
|
|
}
|
|
console.log(a);
|