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

+23-23
Large diffs are not rendered by default.

jscomp/main/js_main.ml

+2-2
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

+1-1
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

+1-1
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

+1
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

+1-1
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

+3-2
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

+1-1
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

+7-8
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

+1-1
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) {

jscomp/test/bs_poly_map_test.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function setOfArray(x) {
3838
function emptyMap(param) {
3939
return {
4040
cmp: Icmp.cmp,
41-
data: Belt_MapDict.empty
41+
data: null
4242
};
4343
}
4444

@@ -200,7 +200,7 @@ function acc(m, is) {
200200

201201
var m = {
202202
cmp: Icmp.cmp,
203-
data: Belt_MapDict.empty
203+
data: null
204204
};
205205

206206
var m1 = acc(m, Belt_Array.concat(Array_data_util.randomRange(0, 20), Array_data_util.randomRange(10, 30)));
@@ -218,7 +218,7 @@ b("File \"bs_poly_map_test.ml\", line 103, characters 4-11", Belt_Map.eq(m1, Bel
218218

219219
var v0 = {
220220
cmp: Icmp.cmp,
221-
data: Belt_MapDict.empty
221+
data: null
222222
};
223223

224224
var v1 = Belt_Map.mergeMany(v0, Belt_Array.map(Array_data_util.randomRange(0, 10000), (function (x) {
@@ -273,14 +273,14 @@ b("File \"bs_poly_map_test.ml\", line 128, characters 4-11", match$4 !== undefin
273273

274274
var map = Belt_Map.remove({
275275
cmp: Icmp.cmp,
276-
data: Belt_MapDict.empty
276+
data: null
277277
}, 0);
278278

279279
b("File \"bs_poly_map_test.ml\", line 129, characters 4-11", Belt_MapDict.isEmpty(map.data));
280280

281281
var map$1 = Belt_Map.removeMany({
282282
cmp: Icmp.cmp,
283-
data: Belt_MapDict.empty
283+
data: null
284284
}, [0]);
285285

286286
b("File \"bs_poly_map_test.ml\", line 130, characters 4-11", Belt_MapDict.isEmpty(map$1.data));

jscomp/test/bs_poly_set_test.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ var u25 = Belt_Set.add(u22, 59);
141141

142142
var u26 = Belt_Set.add({
143143
cmp: IntCmp.cmp,
144-
data: Belt_SetDict.empty
144+
data: null
145145
}, 3);
146146

147147
var ss = Belt_Array.makeByAndShuffle(100, (function (i) {
@@ -188,28 +188,28 @@ eq("File \"bs_poly_set_test.ml\", line 88, characters 5-12", Belt_SetDict.size(u
188188

189189
var m = {
190190
cmp: IntCmp.cmp,
191-
data: Belt_SetDict.empty
191+
data: null
192192
};
193193

194194
b("File \"bs_poly_set_test.ml\", line 89, characters 4-11", Belt_SetDict.minimum(m.data) === undefined);
195195

196196
var m$1 = {
197197
cmp: IntCmp.cmp,
198-
data: Belt_SetDict.empty
198+
data: null
199199
};
200200

201201
b("File \"bs_poly_set_test.ml\", line 90, characters 4-11", Belt_SetDict.maximum(m$1.data) === undefined);
202202

203203
var m$2 = {
204204
cmp: IntCmp.cmp,
205-
data: Belt_SetDict.empty
205+
data: null
206206
};
207207

208208
b("File \"bs_poly_set_test.ml\", line 91, characters 4-11", Belt_SetDict.minUndefined(m$2.data) === undefined);
209209

210210
var m$3 = {
211211
cmp: IntCmp.cmp,
212-
data: Belt_SetDict.empty
212+
data: null
213213
};
214214

215215
b("File \"bs_poly_set_test.ml\", line 92, characters 4-11", Belt_SetDict.maxUndefined(m$3.data) === undefined);
@@ -403,7 +403,7 @@ b("File \"bs_poly_set_test.ml\", line 153, characters 4-11", Belt_SetDict.isEmpt
403403

404404
var match$5 = Belt_Set.split({
405405
cmp: IntCmp.cmp,
406-
data: Belt_SetDict.empty
406+
data: null
407407
}, 0);
408408

409409
var match$6 = match$5[0];

jscomp/test/bs_set_bench.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var Belt_SetInt = require("../../lib/js/belt_SetInt.js");
44
var Caml_builtin_exceptions = require("../../lib/js/caml_builtin_exceptions.js");
55

66
function bench(param) {
7-
var data = Belt_SetInt.empty;
7+
var data = null;
88
console.time("test/bs_set_bench.ml 7");
99
for(var i = 0; i <= 1000000; ++i){
1010
data = Belt_SetInt.add(data, i);

jscomp/test/bs_set_int_test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ var match = Belt_SetInt.partition(v, (function (x) {
7575
return x % 3 === 0;
7676
}));
7777

78-
var l = Belt_SetInt.empty;
78+
var l = null;
7979

80-
var r = Belt_SetInt.empty;
80+
var r = null;
8181

8282
for(var i$1 = 100; i$1 <= 1500; ++i$1){
8383
if (i$1 % 3 === 0) {
@@ -269,7 +269,7 @@ b("File \"bs_set_int_test.ml\", line 129, characters 4-11", !Belt_SetInt.eq(dd$1
269269

270270
b("File \"bs_set_int_test.ml\", line 130, characters 4-11", !Belt_SetInt.eq(bb$1, ee));
271271

272-
var a1 = Belt_SetInt.mergeMany(Belt_SetInt.empty, Array_data_util.randomRange(0, 100));
272+
var a1 = Belt_SetInt.mergeMany(null, Array_data_util.randomRange(0, 100));
273273

274274
var a2 = Belt_SetInt.removeMany(a1, Array_data_util.randomRange(40, 100));
275275

@@ -317,7 +317,7 @@ var a11 = Belt_SetInt.removeMany(a9, Array_data_util.randomRange(0, 2000));
317317

318318
b("File \"bs_set_int_test.ml\", line 152, characters 4-11", Belt_SetInt.isEmpty(a11));
319319

320-
var match$5 = Belt_SetInt.split(Belt_SetInt.empty, 0);
320+
var match$5 = Belt_SetInt.split(null, 0);
321321

322322
var match$6 = match$5[0];
323323

lib/4.06.1/bsdep.ml

+43-40
Large diffs are not rendered by default.

lib/4.06.1/unstable/js_compiler.ml

+49-44
Large diffs are not rendered by default.

lib/4.06.1/unstable/js_refmt_compiler.ml

+49-44
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)