diff --git a/jscomp/core/js_of_lam_string.ml b/jscomp/core/js_of_lam_string.ml index 7570d6ee1b..6ba28e7037 100644 --- a/jscomp/core/js_of_lam_string.ml +++ b/jscomp/core/js_of_lam_string.ml @@ -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 ] diff --git a/jscomp/test/test_bytes.js b/jscomp/test/test_bytes.js index 239bef545b..cfc4ec89e9 100644 --- a/jscomp/test/test_bytes.js +++ b/jscomp/test/test_bytes.js @@ -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; diff --git a/lib/4.06.1/unstable/js_compiler.ml b/lib/4.06.1/unstable/js_compiler.ml index 185daa660a..6039a4db7e 100644 --- a/lib/4.06.1/unstable/js_compiler.ml +++ b/lib/4.06.1/unstable/js_compiler.ml @@ -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 diff --git a/lib/4.06.1/unstable/js_playground_compiler.ml b/lib/4.06.1/unstable/js_playground_compiler.ml index 1e6681dfb4..7a68f53ed2 100644 --- a/lib/4.06.1/unstable/js_playground_compiler.ml +++ b/lib/4.06.1/unstable/js_playground_compiler.ml @@ -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 diff --git a/lib/4.06.1/whole_compiler.ml b/lib/4.06.1/whole_compiler.ml index 33c927e73d..4077392d09 100644 --- a/lib/4.06.1/whole_compiler.ml +++ b/lib/4.06.1/whole_compiler.ml @@ -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 diff --git a/lib/es6/char.js b/lib/es6/char.js index 6e9ca67df7..71726ab8f1 100644 --- a/lib/es6/char.js +++ b/lib/es6/char.js @@ -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); } } diff --git a/lib/js/char.js b/lib/js/char.js index a785e8a876..d460d0dbc4 100644 --- a/lib/js/char.js +++ b/lib/js/char.js @@ -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); } }