Skip to content

Commit c7dbf6c

Browse files
committed
snapshot
1 parent 93b9f9b commit c7dbf6c

29 files changed

+53
-82
lines changed

jscomp/test/bs_node_string_buffer_test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@ function f(str) {
99
"buffer",
1010
Buffer.isBuffer(match[1])
1111
]);
12-
return ;
1312
} else {
1413
console.log(/* tuple */[
1514
"string",
1615
match[1]
1716
]);
18-
return ;
1917
}
18+
2019
}
2120

2221
f("xx");

jscomp/test/gpr_1891_test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ var Curry = require("../../lib/js/curry.js");
55
function foo(x) {
66
if (typeof x === "number" || x[0] !== 3505894 || x[1] !== 3) {
77
console.log("2");
8-
return ;
98
} else {
109
console.log("1");
11-
return ;
1210
}
11+
1312
}
1413

1514
function foo2(x) {
@@ -39,11 +38,10 @@ function foo4(x, h) {
3938
function foo5(x) {
4039
if (typeof x === "number" || x[0] !== 3505894 || x[1] !== 3) {
4140
console.log("x");
42-
return ;
4341
} else {
4442
console.log("hi");
45-
return ;
4643
}
44+
4745
}
4846

4947
exports.foo = foo;

jscomp/test/gpr_3875_test.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,30 +25,27 @@ function compilerBug(a, b, c, f) {
2525
if (b === undefined) {
2626
if (c) {
2727
result.contents = "No x, c is true";
28-
return ;
2928
} else {
3029
result.contents = "No x, c is false";
31-
return ;
3230
}
31+
return ;
3332
}
3433
if (b !== "x") {
3534
if (c) {
3635
result.contents = "No x, c is true";
37-
return ;
3836
} else {
3937
result.contents = "No x, c is false";
40-
return ;
4138
}
39+
return ;
4240
}
4341

4442
}
4543
if (Curry._1(f, undefined)) {
4644
result.contents = "Some x, f returns true";
47-
return ;
4845
} else {
4946
result.contents = "Some x, f returns false";
50-
return ;
5147
}
48+
5249
}
5350

5451
var suites = {

jscomp/test/inline_record_test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,10 @@ eq("File \"inline_record_test.ml\", line 51, characters 6-13", tmp, 3);
7979
function ff(x) {
8080
if (x.tag) {
8181
x[/* z */0] = x[/* z */0] + 2 | 0;
82-
return ;
8382
} else {
8483
x[/* x */0] = x[/* x */0] + 1 | 0;
85-
return ;
8684
}
85+
8786
}
8887

8988
var v4 = /* A0 */Block.__(0, [

jscomp/test/mario_game.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -808,11 +808,10 @@ function set_vel_to_speed(obj) {
808808
var match = obj.dir;
809809
if (match) {
810810
obj.vel.x = speed;
811-
return ;
812811
} else {
813812
obj.vel.x = -speed;
814-
return ;
815813
}
814+
816815
}
817816

818817
function make_type$2(t) {

jscomp/test/mt.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,10 @@ function from_promise_suites(name, suites) {
213213

214214
}), suites);
215215
}));
216-
return ;
217216
} else {
218217
console.log("promise suites");
219-
return ;
220218
}
219+
return ;
221220
}
222221

223222
}

jscomp/test/ocaml_parsetree_test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2248,11 +2248,10 @@ function associate_docstrings(dsl) {
22482248
var match = ds.ds_associated;
22492249
if (match !== 0) {
22502250
ds.ds_associated = /* Many */2;
2251-
return ;
22522251
} else {
22532252
ds.ds_associated = /* One */1;
2254-
return ;
22552253
}
2254+
22562255
}), dsl);
22572256
}
22582257

jscomp/test/ocaml_typedtree_test.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6488,11 +6488,10 @@ function associate_docstrings(dsl) {
64886488
var match = ds.ds_associated;
64896489
if (match !== 0) {
64906490
ds.ds_associated = /* Many */2;
6491-
return ;
64926491
} else {
64936492
ds.ds_associated = /* One */1;
6494-
return ;
64956493
}
6494+
64966495
}), dsl);
64976496
}
64986497

@@ -40595,14 +40594,13 @@ function set_printing_env(env) {
4059540594
/* [] */0
4059640595
]
4059740596
]]);
40598-
return ;
4059940597
} else {
4060040598
r.contents = /* Paths */Block.__(0, [/* :: */[
4060140599
p,
4060240600
l[0]
4060340601
]]);
40604-
return ;
4060540602
}
40603+
return ;
4060640604
}
4060740605
catch (raw_exn){
4060840606
var exn = Caml_js_exceptions.internalToOCamlException(raw_exn);
@@ -63405,15 +63403,14 @@ function type_let(checkOpt, check_strictOpt, env, rec_flag, spat_sexp_list, scop
6340563403
slot$1.contents
6340663404
];
6340763405
rec_needed.contents = true;
63408-
return ;
6340963406
} else {
6341063407
List.iter((function (param) {
6341163408
return mark_value_used(env, param[0], param[1]);
6341263409
}), get_ref(slot));
6341363410
used.contents = true;
6341463411
some_used.contents = true;
63415-
return ;
6341663412
}
63413+
6341763414
};
6341863415
var key_001 = vd.val_loc;
6341963416
var key = /* tuple */[

jscomp/test/parser_api.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4269,11 +4269,10 @@ function associate_docstrings(dsl) {
42694269
var match = ds.ds_associated;
42704270
if (match !== 0) {
42714271
ds.ds_associated = /* Many */2;
4272-
return ;
42734272
} else {
42744273
ds.ds_associated = /* One */1;
4275-
return ;
42764274
}
4275+
42774276
}), dsl);
42784277
}
42794278

jscomp/test/qcc.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -462,11 +462,10 @@ function patchlval(param) {
462462
var n = lval.contents[0];
463463
if (n.tag) {
464464
opos.contents = opos.contents - n[0] | 0;
465-
return ;
466465
} else {
467466
obuf[opos.contents - n[0] | 0] = /* "\141" */141;
468-
return ;
469467
}
468+
470469
}
471470

472471
function read(param) {
@@ -477,16 +476,15 @@ function read(param) {
477476
/* Del */Block.__(1, [4]),
478477
/* Chr */1
479478
];
480-
return ;
481479
} else {
482480
out(18571);
483481
le(8, 0);
484482
lval.contents = /* tuple */[
485483
/* Del */Block.__(1, [3]),
486484
/* Int */0
487485
];
488-
return ;
489486
}
487+
490488
}
491489

492490
var globs = Caml_array.caml_make_vect(100, {

0 commit comments

Comments
 (0)