Skip to content

Commit 4da352c

Browse files
committed
snapshot
1 parent fdeb2a0 commit 4da352c

28 files changed

+1107
-1082
lines changed

jscomp/main/builtin_cmi_datasets.ml

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

jscomp/main/builtin_cmj_datasets.ml

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

jscomp/test/digest_test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22

33
var Mt = require("./mt.js");
44
var $$Array = require("../../lib/js/array.js");
5-
var Bytes = require("../../lib/js/bytes.js");
65
var Curry = require("../../lib/js/curry.js");
76
var Digest = require("../../lib/js/digest.js");
87
var Printf = require("../../lib/js/printf.js");
98
var Caml_array = require("../../lib/js/caml_array.js");
10-
var Caml_bytes = require("../../lib/js/caml_bytes.js");
119
var Pervasives = require("../../lib/js/pervasives.js");
1210
var Ext_array_test = require("./ext_array_test.js");
1311

@@ -235,7 +233,7 @@ Mt.from_pair_suites("Digest_test", Pervasives.$at({
235233
(function (param) {
236234
return {
237235
TAG: /* Eq */0,
238-
_0: Digest.to_hex(Digest.string(Caml_bytes.bytes_to_string(Bytes.make(i, /* "a" */97)))),
236+
_0: Digest.to_hex(Digest.string("a".repeat(i))),
239237
_1: Caml_array.caml_array_get(ref, i)
240238
};
241239
})

jscomp/test/hash_test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
var Mt = require("./mt.js");
44
var Char = require("../../lib/js/char.js");
55
var $$Array = require("../../lib/js/array.js");
6-
var Bytes = require("../../lib/js/bytes.js");
76
var Hashtbl = require("../../lib/js/hashtbl.js");
87
var Mt_global = require("./mt_global.js");
9-
var Caml_bytes = require("../../lib/js/caml_bytes.js");
8+
var Caml_string = require("../../lib/js/caml_string.js");
109

1110
var suites = {
1211
contents: /* [] */0
@@ -23,8 +22,7 @@ function eq(f) {
2322
}
2423

2524
var test_strings = $$Array.init(32, (function (i) {
26-
var c = Char.chr(i);
27-
return Caml_bytes.bytes_to_string(Bytes.make(i, c));
25+
return Caml_string.make(i, Char.chr(i));
2826
}));
2927

3028
var test_strings_hash_results = [

jscomp/test/ocaml_proto_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2101,7 +2101,7 @@ function indentation_prefix(n) {
21012101
case 8 :
21022102
return " ";
21032103
default:
2104-
return Caml_bytes.bytes_to_string(Bytes.make(n, /* " " */32));
2104+
return " ".repeat(n);
21052105
}
21062106
}
21072107

jscomp/test/ocaml_re_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4199,7 +4199,7 @@ function exec(rex, pos, s) {
41994199
return substr._0;
42004200
}
42014201

4202-
var s = Caml_bytes.bytes_to_string(Bytes.make(1048575, /* "a" */97)) + "b";
4202+
var s = "a".repeat(1048575) + "b";
42034203

42044204
eq("File \"xx.ml\", line 7, characters 3-10", get(exec(compile(re(undefined, "aa?b")), undefined, s), 0), "aab");
42054205

0 commit comments

Comments
 (0)