Skip to content

Commit a2f66e6

Browse files
committed
add a test case
1 parent 8e23273 commit a2f66e6

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

jscomp/test/gpr_5557.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,18 @@
22

33

44
function isA(c) {
5-
return true;
5+
if (c === 97) {
6+
return true;
7+
}
8+
throw {
9+
RE_EXN_ID: "Match_failure",
10+
_1: [
11+
"gpr_5557.res",
12+
5,
13+
2
14+
],
15+
Error: new Error()
16+
};
617
}
718

819
var h = /* 'a' */97;

jscomp/test/gpr_5557.res

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
@@config({
2+
flags : ["-w", "-8"]
3+
})
14
let isA = c =>
25
switch c {
36
| 'a' => true

0 commit comments

Comments
 (0)