Skip to content

Commit de53bf1

Browse files
committed
cleanup
1 parent 2034d8e commit de53bf1

File tree

4 files changed

+30
-30
lines changed

4 files changed

+30
-30
lines changed

jscomp/ml/typedecl.ml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ module SMap = Map.Make(String)
577577

578578
let check_constraints_labels env visited l pl =
579579
let rec get_loc name = function
580-
[] -> assert false
580+
[] -> Location.none
581581
| pld :: tl ->
582582
if name = pld.pld_name.txt then pld.pld_type.ptyp_loc
583583
else get_loc name tl
@@ -630,8 +630,7 @@ let check_constraints env sdecl (_, decl) =
630630
| Ptype_variant _ | Ptype_abstract | Ptype_open -> assert false
631631
in
632632
let pl = find_pl sdecl.ptype_kind in
633-
let todoFIXTHIS = false in
634-
if todoFIXTHIS then check_constraints_labels env visited l pl
633+
check_constraints_labels env visited l pl
635634
| Type_open -> ()
636635
end;
637636
begin match decl.type_manifest with

jscomp/test/build.ninja

Lines changed: 2 additions & 1 deletion
Large diffs are not rendered by default.

lib/es6/belt_internalBuckets.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,6 @@ import * as Curry from "./curry.js";
44
import * as Belt_Array from "./belt_Array.js";
55
import * as Caml_option from "./caml_option.js";
66

7-
function copyBucket(c) {
8-
if (c === undefined) {
9-
return c;
10-
}
11-
var head = {
12-
key: c.key,
13-
value: c.value,
14-
next: undefined
15-
};
16-
copyAuxCont(c.next, head);
17-
return head;
18-
}
19-
207
function copyAuxCont(_c, _prec) {
218
while(true) {
229
var prec = _prec;
@@ -36,6 +23,19 @@ function copyAuxCont(_c, _prec) {
3623
};
3724
}
3825

26+
function copyBucket(c) {
27+
if (c === undefined) {
28+
return c;
29+
}
30+
var head = {
31+
key: c.key,
32+
value: c.value,
33+
next: undefined
34+
};
35+
copyAuxCont(c.next, head);
36+
return head;
37+
}
38+
3939
function copyBuckets(buckets) {
4040
var len = buckets.length;
4141
var newBuckets = new Array(len);

lib/js/belt_internalBuckets.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,6 @@ var Curry = require("./curry.js");
44
var Belt_Array = require("./belt_Array.js");
55
var Caml_option = require("./caml_option.js");
66

7-
function copyBucket(c) {
8-
if (c === undefined) {
9-
return c;
10-
}
11-
var head = {
12-
key: c.key,
13-
value: c.value,
14-
next: undefined
15-
};
16-
copyAuxCont(c.next, head);
17-
return head;
18-
}
19-
207
function copyAuxCont(_c, _prec) {
218
while(true) {
229
var prec = _prec;
@@ -36,6 +23,19 @@ function copyAuxCont(_c, _prec) {
3623
};
3724
}
3825

26+
function copyBucket(c) {
27+
if (c === undefined) {
28+
return c;
29+
}
30+
var head = {
31+
key: c.key,
32+
value: c.value,
33+
next: undefined
34+
};
35+
copyAuxCont(c.next, head);
36+
return head;
37+
}
38+
3939
function copyBuckets(buckets) {
4040
var len = buckets.length;
4141
var newBuckets = new Array(len);

0 commit comments

Comments
 (0)