Skip to content

Commit 739a2c6

Browse files
committed
remove staled js files, fix camlinternalOO
1 parent df7a1c9 commit 739a2c6

File tree

105 files changed

+1285
-21014
lines changed

Some content is hidden

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

105 files changed

+1285
-21014
lines changed

jscomp/bsb/bsb_templates.ml

+4-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@ let root = OCamlRes.Res.([
5959
\ ],\n\
6060
\ \"warnings\": {\n\
6161
\ \"error\" : \"+101\"\n\
62-
\ }\n\
63-
}") ;
62+
\ },\n\
63+
\ \"refmt\": 3\n\
64+
}\n\
65+
") ;
6466
Dir (".vscode", [
6567
File ("tasks.json",
6668
"{\n\

jscomp/others/intro.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ For example
1919

2020
{!Belt}
2121

22-
This BuckleScript stdandard library.
22+
This BuckleScript standard library ({b beta}).
2323

2424
BuckleScript also shipped the vanilla OCaml standard library.
2525
@see <https://caml.inria.fr/pub/docs/manual-ocaml-4.02/stdlib.html> OCaml standard library

jscomp/release.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/sh
22
set -e
3+
rm ../lib/js/*.js
34
git clean -dfx . ../lib
45
make clean
56
make themes

jscomp/stdlib/camlinternalOO.ml

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,22 +87,22 @@ let public_method_label s : tag =
8787

8888
module Vars =
8989
#if BS then
90-
Bs.Map.String
90+
Belt.Map.String
9191
#else
9292
Map.Make(struct type t = string let compare (x:t) y = compare x y end)
9393
#end
9494
type vars = int Vars.t
9595

9696
module Meths =
9797
#if BS then
98-
Bs.Map.String
98+
Belt.Map.String
9999
#else
100100
Map.Make(struct type t = string let compare (x:t) y = compare x y end)
101101
#end
102102
type meths = label Meths.t
103103
module Labs =
104104
#if BS then
105-
Bs.Map.Int
105+
Belt.Map.Int
106106
#else
107107
Map.Make(struct type t = label let compare (x:t) y = compare x y end)
108108
#end

jscomp/test/.depend

+10-15
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ arith_parser.cmj : ../stdlib/parsing.cmj ../stdlib/obj.cmj \
6161
../stdlib/lexing.cmj arith_syntax.cmj
6262
arith_syntax.cmj :
6363
arity_deopt.cmj : mt.cmj
64-
array_data_util.cmj : ../others/bs_Array.cmj
64+
array_data_util.cmj : ../others/belt.cmj
6565
array_safe_get.cmj : ../stdlib/array.cmj
6666
array_subtle_test.cmj : mt.cmj ../runtime/js.cmj ../stdlib/array.cmj
6767
array_test.cmj : ../stdlib/pervasives.cmj mt.cmj ../stdlib/list.cmj \
@@ -93,23 +93,21 @@ bs_auto_uncurry.cmj : ../runtime/js.cmj
9393
bs_auto_uncurry_test.cmj : mt.cmj ../others/js_array.cmj ../runtime/js.cmj
9494
bs_hashmap_test.cmj : mt.cmj ../stdlib/hashtbl.cmj ../others/belt.cmj \
9595
array_data_util.cmj
96-
bs_hashset_int_test.cmj : mt.cmj ../others/bs_Array.cmj ../others/belt.cmj \
97-
array_data_util.cmj
96+
bs_hashset_int_test.cmj : mt.cmj ../others/belt.cmj array_data_util.cmj
9897
bs_hashtbl_string_test.cmj : ../stdlib/hashtbl.cmj ../others/belt.cmj
9998
bs_ignore_effect.cmj : mt.cmj
10099
bs_ignore_test.cmj : ../runtime/js.cmj
101100
bs_list_test.cmj : mt.cmj ../runtime/js.cmj ../others/belt.cmj
102-
bs_map_set_dict_test.cmj : mt.cmj ../runtime/js.cmj ../others/bs_Array.cmj \
103-
../others/belt.cmj array_data_util.cmj
101+
bs_map_set_dict_test.cmj : mt.cmj ../runtime/js.cmj ../others/belt.cmj \
102+
array_data_util.cmj
104103
bs_map_test.cmj : mt.cmj ../others/belt.cmj
105104
bs_min_max_test.cmj : ../stdlib/pervasives.cmj mt.cmj
106105
bs_mutable_set_test.cmj : mt.cmj ../runtime/js.cmj ../others/belt.cmj \
107106
array_data_util.cmj ../stdlib/array.cmj
108107
bs_node_string_buffer_test.cmj : ../others/node.cmj ../runtime/js.cmj
109-
bs_poly_map_test.cmj : mt.cmj ../runtime/js.cmj ../others/bs_Array.cmj \
110-
../others/belt.cmj array_data_util.cmj
111-
bs_poly_mutable_map_test.cmj : mt.cmj ../others/bs_Array.cmj \
112-
../others/belt.cmj array_data_util.cmj
108+
bs_poly_map_test.cmj : mt.cmj ../runtime/js.cmj ../others/belt.cmj \
109+
array_data_util.cmj
110+
bs_poly_mutable_map_test.cmj : mt.cmj ../others/belt.cmj array_data_util.cmj
113111
bs_poly_mutable_set_test.cmj : mt.cmj ../runtime/js.cmj ../others/belt.cmj \
114112
array_data_util.cmj
115113
bs_poly_set_test.cmj : mt.cmj ../runtime/js.cmj ../others/belt.cmj \
@@ -120,10 +118,8 @@ bs_rbset_int_bench.cmj : rbset.cmj
120118
bs_rest_test.cmj :
121119
bs_set_bench.cmj : ../others/belt.cmj
122120
bs_set_int_test.cmj : mt.cmj ../stdlib/list.cmj ../runtime/js.cmj \
123-
../others/bs_Array.cmj ../others/belt.cmj array_data_util.cmj \
124-
../stdlib/array.cmj
125-
bs_sort_test.cmj : mt.cmj ../others/bs_Range.cmj ../others/bs_Array.cmj \
126-
../others/belt.cmj array_data_util.cmj
121+
../others/belt.cmj array_data_util.cmj ../stdlib/array.cmj
122+
bs_sort_test.cmj : mt.cmj ../others/belt.cmj array_data_util.cmj
127123
bs_splice_partial.cmj : ../runtime/js.cmj
128124
bs_stack_test.cmj : ../runtime/js.cmj ../others/belt.cmj
129125
bs_string_test.cmj : mt.cmj ../runtime/js.cmj
@@ -329,8 +325,7 @@ hashtbl_test.cmj : mt.cmj ../stdlib/moreLabels.cmj ../stdlib/list.cmj \
329325
hello.foo.cmj : ../runtime/js.cmj
330326
http_types.cmj : ../runtime/js.cmj
331327
ignore_test.cmj : mt.cmj ../runtime/js.cmj
332-
imm_map_bench.cmj : ../runtime/js.cmj ../others/bs_Array.cmj \
333-
../others/belt.cmj
328+
imm_map_bench.cmj : ../runtime/js.cmj ../others/belt.cmj
334329
include_side_effect.cmj : side_effect.cmj
335330
include_side_effect_free.cmj : side_effect_free.cmj
336331
infer_type_test.cmj : ../runtime/js.cmj infer_type_test.cmi

jscomp/test/array_data_util.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
'use strict';
22

3-
var Bs_Array = require("../../lib/js/bs_Array.js");
3+
var Belt_Array = require("../../lib/js/belt_Array.js");
44

55
function range(i, j) {
6-
return Bs_Array.makeBy((j - i | 0) + 1 | 0, (function (k) {
6+
return Belt_Array.makeBy((j - i | 0) + 1 | 0, (function (k) {
77
return k + i | 0;
88
}));
99
}
1010

1111
function randomRange(i, j) {
12-
var v = Bs_Array.makeBy((j - i | 0) + 1 | 0, (function (k) {
12+
var v = Belt_Array.makeBy((j - i | 0) + 1 | 0, (function (k) {
1313
return k + i | 0;
1414
}));
15-
Bs_Array.shuffleInPlace(v);
15+
Belt_Array.shuffleInPlace(v);
1616
return v;
1717
}
1818

jscomp/test/array_data_util.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
module A = Bs_Array
2+
module A = Belt.Array
33

44
(* []*)
55
let range i j =

jscomp/test/bs_MapInt_test.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
var Bs_MapInt = require("../../lib/js/bs_MapInt.js");
3+
var Belt_MapInt = require("../../lib/js/belt_MapInt.js");
44

55
function should(b) {
66
if (b) {
@@ -11,17 +11,17 @@ function should(b) {
1111
}
1212

1313
function test() {
14-
var m = Bs_MapInt.empty;
14+
var m = Belt_MapInt.empty;
1515
for(var i = 0; i <= 999999; ++i){
16-
m = Bs_MapInt.set(m, i, i);
16+
m = Belt_MapInt.set(m, i, i);
1717
}
1818
for(var i$1 = 0; i$1 <= 999999; ++i$1){
19-
should(+(Bs_MapInt.get(m, i$1) !== /* None */0));
19+
should(+(Belt_MapInt.get(m, i$1) !== /* None */0));
2020
}
2121
for(var i$2 = 0; i$2 <= 999999; ++i$2){
22-
m = Bs_MapInt.remove(m, i$2);
22+
m = Belt_MapInt.remove(m, i$2);
2323
}
24-
return should(Bs_MapInt.isEmpty(m));
24+
return should(Belt_MapInt.isEmpty(m));
2525
}
2626

2727
test(/* () */0);

0 commit comments

Comments
 (0)