Skip to content

Commit 26eb4ab

Browse files
TheSpydercristianoc
authored andcommitted
Further fix for %bytes_to_string
1 parent 8e3ccc6 commit 26eb4ab

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

jscomp/core/js_of_lam_string.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ let set_byte e e0 e1 = E.assign (E.array_index e e0) e1
6060
]}
6161
*)
6262
let bytes_to_string e =
63-
E.runtime_call Js_runtime_modules.bytes_ "bytes_to_string" [ e ]
63+
E.runtime_call Js_runtime_modules.bytes_ "to_string" [ e ]

jscomp/test/test_bytes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var Bytes = require("../../lib/js/bytes.js");
44

55
var f = Bytes.unsafe_to_string;
66

7-
var ff = Bytes.bytes_to_string;
7+
var ff = Bytes.to_string;
88

99
exports.f = f;
1010
exports.ff = ff;

lib/4.06.1/unstable/js_compiler.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94664,7 +94664,7 @@ let set_byte e e0 e1 = E.assign (E.array_index e e0) e1
9466494664
]}
9466594665
*)
9466694666
let bytes_to_string e =
94667-
E.runtime_call Js_runtime_modules.bytes_ "bytes_to_string" [ e ]
94667+
E.runtime_call Js_runtime_modules.bytes_ "to_string" [ e ]
9466894668

9466994669
end
9467094670
module Lam_compile_const : sig

lib/4.06.1/unstable/js_playground_compiler.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94664,7 +94664,7 @@ let set_byte e e0 e1 = E.assign (E.array_index e e0) e1
9466494664
]}
9466594665
*)
9466694666
let bytes_to_string e =
94667-
E.runtime_call Js_runtime_modules.bytes_ "bytes_to_string" [ e ]
94667+
E.runtime_call Js_runtime_modules.bytes_ "to_string" [ e ]
9466894668

9466994669
end
9467094670
module Lam_compile_const : sig

lib/4.06.1/whole_compiler.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263935,7 +263935,7 @@ let set_byte e e0 e1 = E.assign (E.array_index e e0) e1
263935263935
]}
263936263936
*)
263937263937
let bytes_to_string e =
263938-
E.runtime_call Js_runtime_modules.bytes_ "bytes_to_string" [ e ]
263938+
E.runtime_call Js_runtime_modules.bytes_ "to_string" [ e ]
263939263939

263940263940
end
263941263941
module Lam_compile_const : sig

lib/es6/char.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ function escaped(c) {
6464
s[1] = 48 + (c / 100 | 0) | 0;
6565
s[2] = 48 + (c / 10 | 0) % 10 | 0;
6666
s[3] = 48 + c % 10 | 0;
67-
return Bytes.bytes_to_string(s);
67+
return Bytes.to_string(s);
6868
case 2 :
6969
var s$1 = [0];
7070
s$1[0] = c;
71-
return Bytes.bytes_to_string(s$1);
71+
return Bytes.to_string(s$1);
7272

7373
}
7474
}

lib/js/char.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ function escaped(c) {
6464
s[1] = 48 + (c / 100 | 0) | 0;
6565
s[2] = 48 + (c / 10 | 0) % 10 | 0;
6666
s[3] = 48 + c % 10 | 0;
67-
return Bytes.bytes_to_string(s);
67+
return Bytes.to_string(s);
6868
case 2 :
6969
var s$1 = [0];
7070
s$1[0] = c;
71-
return Bytes.bytes_to_string(s$1);
71+
return Bytes.to_string(s$1);
7272

7373
}
7474
}

0 commit comments

Comments
 (0)