Skip to content

Commit c757eff

Browse files
committed
check in the diff of js
1 parent d236f76 commit c757eff

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

jscomp/test/gpr_1409_test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function make(foo) {
5252
return function (param) {
5353
var tmp = {};
5454
if (partial_arg !== undefined) {
55-
tmp.foo = Caml_option.valFromOption(partial_arg);
55+
tmp.foo = partial_arg;
5656
}
5757
return tmp;
5858
};
@@ -79,10 +79,10 @@ function test3(_open, xx__hi) {
7979
hi: 2
8080
};
8181
if (_open !== undefined) {
82-
tmp.open = Caml_option.valFromOption(_open);
82+
tmp.open = _open;
8383
}
8484
if (xx__hi !== undefined) {
85-
tmp.xx = Caml_option.valFromOption(xx__hi);
85+
tmp.xx = xx__hi;
8686
}
8787
return tmp;
8888
}
@@ -94,7 +94,7 @@ function test4(_open, xx__hi) {
9494
hi: 2
9595
};
9696
if (xx__hi !== undefined) {
97-
tmp.xx = Caml_option.valFromOption(xx__hi);
97+
tmp.xx = xx__hi;
9898
}
9999
return tmp;
100100
}
@@ -106,11 +106,11 @@ function test5(f, x) {
106106
};
107107
var tmp$1 = Curry._1(f, x);
108108
if (tmp$1 !== undefined) {
109-
tmp.open = Caml_option.valFromOption(tmp$1);
109+
tmp.open = tmp$1;
110110
}
111111
var tmp$2 = Curry._1(f, x);
112112
if (tmp$2 !== undefined) {
113-
tmp.xx = Caml_option.valFromOption(tmp$2);
113+
tmp.xx = tmp$2;
114114
}
115115
return tmp;
116116
}
@@ -125,11 +125,11 @@ function test6(f, x) {
125125
};
126126
var tmp$1 = (x$1.contents = x$1.contents + 1 | 0, x$1.contents);
127127
if (tmp$1 !== undefined) {
128-
tmp.open = Caml_option.valFromOption(tmp$1);
128+
tmp.open = tmp$1;
129129
}
130130
var tmp$2 = f(x$1);
131131
if (tmp$2 !== undefined) {
132-
tmp.xx = Caml_option.valFromOption(tmp$2);
132+
tmp.xx = tmp$2;
133133
}
134134
return tmp;
135135
}

jscomp/test/test_obj_simple_ffi.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict';
22

3-
var Caml_option = require("../../lib/js/caml_option.js");
43

54
function v(displayName, param) {
65
var tmp = {
@@ -9,7 +8,7 @@ function v(displayName, param) {
98
hi: "ghos"
109
};
1110
if (displayName !== undefined) {
12-
tmp.displayName = Caml_option.valFromOption(displayName);
11+
tmp.displayName = displayName;
1312
}
1413
return tmp;
1514
}

0 commit comments

Comments
 (0)