swc/tests/fixture/issue-1402/case1/input/index.ts
강동윤 27aad87798
fix(es/transforms/base): Fix hygiene of catch clause (#1413)
swc_ecma_transforms_base:
 - `hygiene`: Apply ops in catch clauses. (#1402)
2021-02-19 16:52:02 +09:00

6 lines
59 B
TypeScript

var e = 1;
try {
throw 2
} catch {
console.log(e)
}