Skip to content

Commit 149b199

Browse files
committed
snapshot changes
1 parent 535de98 commit 149b199

26 files changed

+81330
-81340
lines changed

jscomp/main/builtin_cmj_datasets.ml

Lines changed: 23 additions & 23 deletions
Large diffs are not rendered by default.

jscomp/main/js_main.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,8 @@ let file_level_flags_handler (e : Parsetree.expression option) =
365365
| _ -> Location.raise_errorf ~loc:e.pexp_loc "string literal expected" )) in
366366
Arg.parse_argv ~current:(ref 0)
367367
args buckle_script_flags ignore usage
368-
;Format.fprintf Format.err_formatter "%a %b@."
369-
Ext_obj.pp_any args !Js_config.cross_module_inline;
368+
(* ;Format.fprintf Format.err_formatter "%a %b@."
369+
Ext_obj.pp_any args !Js_config.cross_module_inline; *)
370370
| Some e ->
371371
Location.raise_errorf ~loc:e.pexp_loc "string array expected"
372372

jscomp/stdlib-406/bigarray.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
(* special exception on linking described in the file LICENSE. *)
1313
(* *)
1414
(**************************************************************************)
15-
15+
[@@@bs.config { flags = [|"-bs-no-cross-module-opt" |]}]
1616
(* Module [Bigarray]: large, multi-dimensional, numerical arrays *)
1717

1818
include CamlinternalBigarray

jscomp/stdlib-406/callback.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
(* special exception on linking described in the file LICENSE. *)
1313
(* *)
1414
(**************************************************************************)
15-
15+
[@@@bs.config { flags = [|"-bs-no-cross-module-opt" |]}]
1616
(* Registering OCaml values with the C runtime for later callbacks *)
1717

1818
external register_named_value : string -> Obj.t -> unit

jscomp/stdlib-406/gc.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[@@@bs.config { flags = [|"-bs-no-cross-module-opt"; |]}]
12
(**************************************************************************)
23
(* *)
34
(* OCaml *)

jscomp/stdlib-406/unixLabels.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
(* special exception on linking described in the file LICENSE. *)
1313
(* *)
1414
(**************************************************************************)
15-
15+
[@@@bs.config { flags = [|"-bs-no-cross-module-opt" |]}]
1616
(* Module [UnixLabels]: labelled Unix module *)
1717

1818
include Unix

jscomp/test/bs_MapInt_test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
'use strict';
22

3+
var Js_exn = require("../../lib/js/js_exn.js");
34
var Belt_MapInt = require("../../lib/js/belt_MapInt.js");
45

56
function should(b) {
67
if (b) {
78
return 0;
89
} else {
9-
throw new Error("IMPOSSIBLE");
10+
return Js_exn.raiseError("IMPOSSIBLE");
1011
}
1112
}
1213

1314
function test(param) {
14-
var m = Belt_MapInt.empty;
15+
var m = null;
1516
for(var i = 0; i <= 999999; ++i){
1617
m = Belt_MapInt.set(m, i, i);
1718
}

jscomp/test/bs_hashtbl_string_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function bench2(m) {
105105
function bench3(m) {
106106
var empty = {
107107
cmp: m.cmp,
108-
data: Belt_MapDict.empty
108+
data: null
109109
};
110110
var cmp = m.cmp;
111111
var table = empty.data;

jscomp/test/bs_map_set_dict_test.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ var Belt_Id = require("../../lib/js/belt_Id.js");
55
var Belt_Map = require("../../lib/js/belt_Map.js");
66
var Belt_List = require("../../lib/js/belt_List.js");
77
var Belt_Array = require("../../lib/js/belt_Array.js");
8-
var Belt_MapInt = require("../../lib/js/belt_MapInt.js");
98
var Belt_MapDict = require("../../lib/js/belt_MapDict.js");
109
var Belt_SetDict = require("../../lib/js/belt_SetDict.js");
1110
var Caml_primitive = require("../../lib/js/caml_primitive.js");
@@ -33,7 +32,7 @@ var Icmp2 = Belt_Id.comparable(Caml_primitive.caml_int_compare);
3332

3433
var m0 = {
3534
cmp: Icmp.cmp,
36-
data: Belt_MapDict.empty
35+
data: null
3736
};
3837

3938
var I2 = Belt_Id.comparable((function (x, y) {
@@ -42,12 +41,12 @@ var I2 = Belt_Id.comparable((function (x, y) {
4241

4342
var m = {
4443
cmp: Icmp2.cmp,
45-
data: Belt_MapDict.empty
44+
data: null
4645
};
4746

4847
var m2 = {
4948
cmp: I2.cmp,
50-
data: Belt_MapDict.empty
49+
data: null
5150
};
5251

5352
var data = m.data;
@@ -69,13 +68,13 @@ var newm = {
6968

7069
console.log(newm);
7170

72-
var m11 = Belt_MapDict.set(Belt_MapDict.empty, 1, 1, Icmp.cmp);
71+
var m11 = Belt_MapDict.set(null, 1, 1, Icmp.cmp);
7372

7473
console.log(m11);
7574

7675
var v = {
7776
cmp: Icmp2.cmp,
78-
data: Belt_SetDict.empty
77+
data: null
7978
};
8079

8180
var m_dict$1 = Belt_Map.getId(m);
@@ -165,9 +164,9 @@ var A = /* alias */0;
165164

166165
var L = /* alias */0;
167166

168-
var vv = Belt_MapInt.empty;
167+
var vv = null;
169168

170-
var vv2 = Belt_MapInt.empty;
169+
var vv2 = null;
171170

172171
var Md0 = /* alias */0;
173172

jscomp/test/bs_map_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var mapOfArray = Belt_MapInt.fromArray;
5050
var setOfArray = Belt_SetInt.fromArray;
5151

5252
function emptyMap(param) {
53-
return Belt_MapInt.empty;
53+
return null;
5454
}
5555

5656
var v = Belt_Array.makeByAndShuffle(1000000, (function (i) {

0 commit comments

Comments
 (0)