Skip to content

Commit 45c8b91

Browse files
TheSpydercristianoc
authored andcommitted
Further fix for %bytes_to_string
1 parent fa330a1 commit 45c8b91

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

jscomp/core/js_of_lam_string.ml

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

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -94849,7 +94849,7 @@ let set_byte e e0 e1 = E.assign (E.array_index e e0) e1
9484994849
]}
9485094850
*)
9485194851
let bytes_to_string e =
94852-
E.runtime_call Js_runtime_modules.bytes_ "bytes_to_string" [ e ]
94852+
E.runtime_call Js_runtime_modules.bytes_ "to_string" [ e ]
9485394853

9485494854
end
9485594855
module Lam_compile_const : sig

lib/4.06.1/unstable/js_playground_compiler.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -94849,7 +94849,7 @@ let set_byte e e0 e1 = E.assign (E.array_index e e0) e1
9484994849
]}
9485094850
*)
9485194851
let bytes_to_string e =
94852-
E.runtime_call Js_runtime_modules.bytes_ "bytes_to_string" [ e ]
94852+
E.runtime_call Js_runtime_modules.bytes_ "to_string" [ e ]
9485394853

9485494854
end
9485594855
module Lam_compile_const : sig

lib/4.06.1/whole_compiler.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -264120,7 +264120,7 @@ let set_byte e e0 e1 = E.assign (E.array_index e e0) e1
264120264120
]}
264121264121
*)
264122264122
let bytes_to_string e =
264123-
E.runtime_call Js_runtime_modules.bytes_ "bytes_to_string" [ e ]
264123+
E.runtime_call Js_runtime_modules.bytes_ "to_string" [ e ]
264124264124

264125264125
end
264126264126
module Lam_compile_const : sig

lib/es6/char.js

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

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