We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 727298e commit 88f85edCopy full SHA for 88f85ed
jscomp/test/res_debug.js
@@ -19,16 +19,9 @@ function testMatch(v) {
19
var y = v.y;
20
if (y !== undefined) {
21
return y;
22
+ } else {
23
+ return 42;
24
}
- throw {
- RE_EXN_ID: "Match_failure",
25
- _1: [
26
- "res_debug.res",
27
- 50,
28
- 2
29
- ],
30
- Error: new Error()
31
- };
32
33
34
var v2 = newrecord;
jscomp/test/res_debug.res
@@ -44,12 +44,10 @@ let v1 : r = { x : 3
44
, z : 3
45
46
47
-@@warning("-8") // Turn off incomplete pattern match
48
-
49
let testMatch = v =>
50
switch v {
51
| {y} => y
52
-// | {y: @optional None} => 42
+ | {y: @optional None} => 42
53
54
55
let h = '😊'
0 commit comments