Skip to content

Commit 6dcba72

Browse files
Fix handling of 不知何禍歟 in typecheck
1 parent 02e8c78 commit 6dcba72

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/typecheck.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,9 @@ function typecheck(
669669
} else if (a.op == "catcherr") {
670670
scopepop(a, "catch", "catcherr");
671671
scopepush(a);
672+
if (a.error === undefined) {
673+
strayvar.push(inittype("str"));
674+
}
672675
} else if (a.op == "tryend") {
673676
scopepop(a, "catch", "catcherr");
674677
} else if (a.op == "throw") {

0 commit comments

Comments
 (0)