Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jscomp/core/js_of_lam_string.ml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ let set_byte e e0 e1 = E.assign (E.array_index e e0) e1
]}
*)
let bytes_to_string e =
E.runtime_call Js_runtime_modules.bytes_ "bytes_to_string" [ e ]
E.runtime_call Js_runtime_modules.bytes_ "to_string" [ e ]
2 changes: 1 addition & 1 deletion jscomp/test/test_bytes.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var Bytes = require("../../lib/js/bytes.js");

var f = Bytes.unsafe_to_string;

var ff = Bytes.bytes_to_string;
var ff = Bytes.to_string;

exports.f = f;
exports.ff = ff;
Expand Down
2 changes: 1 addition & 1 deletion lib/4.06.1/unstable/js_compiler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -94849,7 +94849,7 @@ let set_byte e e0 e1 = E.assign (E.array_index e e0) e1
]}
*)
let bytes_to_string e =
E.runtime_call Js_runtime_modules.bytes_ "bytes_to_string" [ e ]
E.runtime_call Js_runtime_modules.bytes_ "to_string" [ e ]

end
module Lam_compile_const : sig
Expand Down
2 changes: 1 addition & 1 deletion lib/4.06.1/unstable/js_playground_compiler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -94849,7 +94849,7 @@ let set_byte e e0 e1 = E.assign (E.array_index e e0) e1
]}
*)
let bytes_to_string e =
E.runtime_call Js_runtime_modules.bytes_ "bytes_to_string" [ e ]
E.runtime_call Js_runtime_modules.bytes_ "to_string" [ e ]

end
module Lam_compile_const : sig
Expand Down
2 changes: 1 addition & 1 deletion lib/4.06.1/whole_compiler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -264120,7 +264120,7 @@ let set_byte e e0 e1 = E.assign (E.array_index e e0) e1
]}
*)
let bytes_to_string e =
E.runtime_call Js_runtime_modules.bytes_ "bytes_to_string" [ e ]
E.runtime_call Js_runtime_modules.bytes_ "to_string" [ e ]

end
module Lam_compile_const : sig
Expand Down
4 changes: 2 additions & 2 deletions lib/es6/char.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ function escaped(c) {
s[1] = 48 + (c / 100 | 0) | 0;
s[2] = 48 + (c / 10 | 0) % 10 | 0;
s[3] = 48 + c % 10 | 0;
return Bytes.bytes_to_string(s);
return Bytes.to_string(s);
case 2 :
var s$1 = [0];
s$1[0] = c;
return Bytes.bytes_to_string(s$1);
return Bytes.to_string(s$1);

}
}
Expand Down
4 changes: 2 additions & 2 deletions lib/js/char.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ function escaped(c) {
s[1] = 48 + (c / 100 | 0) | 0;
s[2] = 48 + (c / 10 | 0) % 10 | 0;
s[3] = 48 + c % 10 | 0;
return Bytes.bytes_to_string(s);
return Bytes.to_string(s);
case 2 :
var s$1 = [0];
s$1[0] = c;
return Bytes.bytes_to_string(s$1);
return Bytes.to_string(s$1);

}
}
Expand Down