Skip to content

Commit 96bd991

Browse files
LingDong-Lingdong Huang
authored andcommitted
fix try end
1 parent da5c2b5 commit 96bd991

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/parser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,7 @@ function asc2js(asc, imports = []) {
849849
}
850850
js += `}`;
851851
curlvl--;
852+
strayvar = [];
852853
} else if (a.op == "throw") {
853854
var r = randVar();
854855
js += `var ${r} = new Error(); ${r}.name=${a.error[1]}; throw ${r};`;

0 commit comments

Comments
 (0)