Skip to content

Commit 663e81f

Browse files
committed
check in js diffs, all look good
1 parent dd49e68 commit 663e81f

File tree

252 files changed

+5070
-5048
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

252 files changed

+5070
-5048
lines changed

jscomp/test/a_filename_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function eq(loc, x, y) {
2727
}
2828

2929
function test(param, param$1) {
30-
return Ext_filename_test.node_relative_path(/* true */1, param, param$1);
30+
return Ext_filename_test.node_relative_path(true, param, param$1);
3131
}
3232

3333
eq("File \"a_filename_test.ml\", line 10, characters 5-12", /* tuple */[

jscomp/test/a_string_test.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var suites_000 = /* tuple */[
99
"split",
1010
(function () {
1111
return /* Eq */Block.__(0, [
12-
Ext_string_test.split(/* Some */[/* true */1], "hihi", /* "i" */105),
12+
Ext_string_test.split(/* Some */[true], "hihi", /* "i" */105),
1313
/* :: */[
1414
"h",
1515
/* :: */[
@@ -45,7 +45,7 @@ var suites_001 = /* :: */[
4545
"split_empty",
4646
(function () {
4747
return /* Eq */Block.__(0, [
48-
Ext_string_test.split(/* Some */[/* true */1], "", /* "i" */105),
48+
Ext_string_test.split(/* Some */[true], "", /* "i" */105),
4949
/* [] */0
5050
]);
5151
})
@@ -55,7 +55,7 @@ var suites_001 = /* :: */[
5555
"split_normal",
5656
(function () {
5757
return /* Eq */Block.__(0, [
58-
Ext_string_test.split(/* Some */[/* true */1], "h i i", /* " " */32),
58+
Ext_string_test.split(/* Some */[true], "h i i", /* " " */32),
5959
/* :: */[
6060
"h",
6161
/* :: */[
@@ -75,12 +75,12 @@ var suites_001 = /* :: */[
7575
(function () {
7676
return /* Eq */Block.__(0, [
7777
List.filter((function (s) {
78-
return +(s !== "");
78+
return s !== "";
7979
}))(Ext_string_test.split_by(/* None */0, (function (x) {
8080
if (x === /* " " */32) {
81-
return /* true */1;
81+
return true;
8282
} else {
83-
return +(x === /* "\t" */9);
83+
return x === /* "\t" */9;
8484
}
8585
}), "h hgso hgso \t hi")),
8686
/* :: */[

jscomp/test/and_or_tailcall_test.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function f(b, _, _n) {
77
while(true) {
88
var n = _n;
99
if (n > 100000 || !b) {
10-
return /* false */0;
10+
return false;
1111
} else {
1212
_n = n + 1 | 0;
1313
continue ;
@@ -19,9 +19,9 @@ function or_f(b, _, _n) {
1919
while(true) {
2020
var n = _n;
2121
if (n > 100000) {
22-
return /* false */0;
22+
return false;
2323
} else if (b) {
24-
return /* true */1;
24+
return true;
2525
} else {
2626
_n = n + 1 | 0;
2727
continue ;
@@ -33,8 +33,8 @@ var suites_000 = /* tuple */[
3333
"and_tail",
3434
(function () {
3535
return /* Eq */Block.__(0, [
36-
/* false */0,
37-
f(/* true */1, 1, 0)
36+
false,
37+
f(true, 1, 0)
3838
]);
3939
})
4040
];
@@ -44,8 +44,8 @@ var suites_001 = /* :: */[
4444
"or_tail",
4545
(function () {
4646
return /* Eq */Block.__(0, [
47-
/* false */0,
48-
or_f(/* false */0, 1, 0)
47+
false,
48+
or_f(false, 1, 0)
4949
]);
5050
})
5151
],

jscomp/test/argv_test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ function anno_fun() {
99

1010
var usage_msg = "Usage:\n";
1111

12-
var compile = [/* false */0];
12+
var compile = [false];
1313

14-
var test = [/* true */1];
14+
var test = [true];
1515

1616
var arg_spec_000 = /* tuple */[
1717
"-c",

jscomp/test/arith_parser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var yytransl_const = /* array */[
1616
0
1717
];
1818

19-
var yytransl_block = /* int array */[
19+
var yytransl_block = /* array */[
2020
257,
2121
258,
2222
0

jscomp/test/array_subtle_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function eq(loc, param) {
2828
return /* () */0;
2929
}
3030

31-
var v = /* int array */[
31+
var v = /* array */[
3232
1,
3333
2,
3434
3,

jscomp/test/array_test.js

+16-16
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ function is_sorted(x) {
1414
while(true) {
1515
var i = _i;
1616
if (i >= (len - 1 | 0)) {
17-
return /* true */1;
17+
return true;
1818
} else if (Caml_obj.caml_lessthan(Caml_array.caml_array_get(x, i), Caml_array.caml_array_get(x, i + 1 | 0))) {
1919
_i = i + 1 | 0;
2020
continue ;
2121
} else {
22-
return /* false */0;
22+
return false;
2323
}
2424
};
2525
}
@@ -59,7 +59,7 @@ var array_suites_001 = /* :: */[
5959
};
6060
var match = List.split(aux(/* :: */[
6161
/* tuple */[
62-
/* int array */[],
62+
/* array */[],
6363
/* [] */0
6464
],
6565
/* [] */0
@@ -84,20 +84,20 @@ var array_suites_001 = /* :: */[
8484
5
8585
],
8686
Caml_array.caml_array_concat(/* :: */[
87-
/* int array */[
87+
/* array */[
8888
0,
8989
1,
9090
2
9191
],
9292
/* :: */[
93-
/* int array */[
93+
/* array */[
9494
3,
9595
4
9696
],
9797
/* :: */[
98-
/* int array */[],
98+
/* array */[],
9999
/* :: */[
100-
/* int array */[5],
100+
/* array */[5],
101101
/* [] */0
102102
]
103103
]
@@ -130,7 +130,7 @@ var array_suites_001 = /* :: */[
130130
3,
131131
4
132132
], 2, 2),
133-
/* int array */[
133+
/* array */[
134134
2,
135135
3
136136
]
@@ -141,7 +141,7 @@ var array_suites_001 = /* :: */[
141141
/* tuple */[
142142
"blit",
143143
(function () {
144-
var u = /* int array */[
144+
var u = /* array */[
145145
100,
146146
0,
147147
0
@@ -152,12 +152,12 @@ var array_suites_001 = /* :: */[
152152
$$Array.blit(v, 1, u, 1, 2);
153153
return /* Eq */Block.__(0, [
154154
/* tuple */[
155-
/* int array */[
155+
/* array */[
156156
0,
157157
2,
158158
4
159159
],
160-
/* int array */[
160+
/* array */[
161161
100,
162162
2,
163163
4
@@ -176,7 +176,7 @@ var array_suites_001 = /* :: */[
176176
(function () {
177177
return /* Eq */Block.__(0, [
178178
Caml_array.caml_make_vect(2, 1),
179-
/* int array */[
179+
/* array */[
180180
1,
181181
1
182182
]
@@ -187,19 +187,19 @@ var array_suites_001 = /* :: */[
187187
/* tuple */[
188188
"sort",
189189
(function () {
190-
var u = /* int array */[
190+
var u = /* array */[
191191
3,
192192
0,
193193
1
194194
];
195195
$$Array.sort(Caml_primitive.caml_int_compare, u);
196196
return /* Eq */Block.__(0, [
197-
Caml_obj.caml_equal(/* int array */[
197+
Caml_obj.caml_equal(/* array */[
198198
0,
199199
1,
200200
3
201201
], u),
202-
/* true */1
202+
true
203203
]);
204204
})
205205
],
@@ -212,7 +212,7 @@ var array_suites_001 = /* :: */[
212212
}));
213213
$$Array.sort(Caml_primitive.caml_int_compare, v);
214214
return /* Eq */Block.__(0, [
215-
/* true */1,
215+
true,
216216
is_sorted(v)
217217
]);
218218
})

jscomp/test/ast_abstract_test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ function tFromJs(param) {
4343

4444
var v0 = {
4545
x: /* x */3,
46-
y: /* y : false */0,
47-
z: /* z : false */0
46+
y: /* y */false,
47+
z: /* z */false
4848
};
4949

5050
var v1 = {
5151
x: /* x */3,
52-
y: /* y : false */0,
52+
y: /* y */false,
5353
z: /* z */""
5454
};
5555

@@ -90,7 +90,7 @@ idx(/* b */98);
9090

9191
idx(/* c */99);
9292

93-
var jsMapperConstantArray$1 = /* int array */[
93+
var jsMapperConstantArray$1 = /* array */[
9494
0,
9595
3,
9696
4

jscomp/test/ast_js_mapper_poly_test.js

+17-17
Original file line numberDiff line numberDiff line change
@@ -50,30 +50,30 @@ function uFromJs(param) {
5050
}
5151

5252
function eqU(x, y) {
53-
return +(x === y);
53+
return x === y;
5454
}
5555

5656
function eqUOpt(x, y) {
5757
if (x) {
5858
if (y) {
59-
return +(x[0] === y[0]);
59+
return x[0] === y[0];
6060
} else {
61-
return /* false */0;
61+
return false;
6262
}
6363
} else if (y) {
64-
return /* false */0;
64+
return false;
6565
} else {
66-
return /* true */1;
66+
return true;
6767
}
6868
}
6969

70-
eq("File \"ast_js_mapper_poly_test.ml\", line 25, characters 5-12", eqUOpt(uFromJs("x"), /* Some */[/* f */102]), /* true */1);
70+
eq("File \"ast_js_mapper_poly_test.ml\", line 25, characters 5-12", eqUOpt(uFromJs("x"), /* Some */[/* f */102]), true);
7171

72-
eq("File \"ast_js_mapper_poly_test.ml\", line 26, characters 5-12", eqUOpt(uFromJs("D"), /* Some */[/* D */68]), /* true */1);
72+
eq("File \"ast_js_mapper_poly_test.ml\", line 26, characters 5-12", eqUOpt(uFromJs("D"), /* Some */[/* D */68]), true);
7373

74-
eq("File \"ast_js_mapper_poly_test.ml\", line 27, characters 5-12", eqUOpt(uFromJs("C"), /* Some */[/* C */67]), /* true */1);
74+
eq("File \"ast_js_mapper_poly_test.ml\", line 27, characters 5-12", eqUOpt(uFromJs("C"), /* Some */[/* C */67]), true);
7575

76-
eq("File \"ast_js_mapper_poly_test.ml\", line 28, characters 5-12", eqUOpt(uFromJs("f"), /* None */0), /* true */1);
76+
eq("File \"ast_js_mapper_poly_test.ml\", line 28, characters 5-12", eqUOpt(uFromJs("f"), /* None */0), true);
7777

7878
eq("File \"ast_js_mapper_poly_test.ml\", line 29, characters 5-12", $$Array.map(uToJs, /* array */[
7979
/* D */68,
@@ -85,7 +85,7 @@ eq("File \"ast_js_mapper_poly_test.ml\", line 29, characters 5-12", $$Array.map(
8585
"x"
8686
]);
8787

88-
var jsMapperConstantArray$1 = /* int array */[
88+
var jsMapperConstantArray$1 = /* array */[
8989
0,
9090
3,
9191
4,
@@ -101,20 +101,20 @@ function vFromJs(param) {
101101
}
102102

103103
function eqV(x, y) {
104-
return +(x === y);
104+
return x === y;
105105
}
106106

107107
function eqVOpt(x, y) {
108108
if (x) {
109109
if (y) {
110-
return +(x[0] === y[0]);
110+
return x[0] === y[0];
111111
} else {
112-
return /* false */0;
112+
return false;
113113
}
114114
} else if (y) {
115-
return /* false */0;
115+
return false;
116116
} else {
117-
return /* true */1;
117+
return true;
118118
}
119119
}
120120

@@ -132,12 +132,12 @@ function s(param) {
132132
}
133133
}
134134

135-
eq("File \"ast_js_mapper_poly_test.ml\", line 54, characters 5-12", $$Array.map(vToJs, /* int array */[
135+
eq("File \"ast_js_mapper_poly_test.ml\", line 54, characters 5-12", $$Array.map(vToJs, /* array */[
136136
/* A0 */0,
137137
/* A1 */1,
138138
/* A2 */2,
139139
/* A3 */3
140-
]), /* int array */[
140+
]), /* array */[
141141
0,
142142
3,
143143
4,

jscomp/test/ast_js_mapper_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function searchForSureExists(xs, k) {
5555
};
5656
}
5757

58-
var jsMapperConstantArray = /* int array */[
58+
var jsMapperConstantArray = /* array */[
5959
0,
6060
3,
6161
4,

jscomp/test/ast_mapper_defensive_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function aFromJs(param) {
3333
return param - 0 | 0;
3434
}
3535

36-
var jsMapperConstantArray = /* int array */[
36+
var jsMapperConstantArray = /* array */[
3737
0,
3838
3,
3939
4

jscomp/test/bal_set_mini.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@ function mem(x, _param) {
160160
if (param) {
161161
var c = compare_int(x, param[1]);
162162
if (c === 0) {
163-
return /* true */1;
163+
return true;
164164
} else {
165165
_param = c < 0 ? param[0] : param[2];
166166
continue ;
167167
}
168168
} else {
169-
return /* false */0;
169+
return false;
170170
}
171171
};
172172
}

0 commit comments

Comments
 (0)