We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 246df64 commit 6a6a024Copy full SHA for 6a6a024
CHANGES.md
@@ -51,6 +51,7 @@
51
* Runtime: fix Int64.of_string overflow check (#1874)
52
* Runtime: fix caml_string_concat when not using JS strings (#1874)
53
* Runtime: consistent bigarray hashing across all architectures (#1977)
54
+* Runtime: fix caml_utf8_of_utf16 bug in high surrogate case (#2008)
55
* Tools: fix jsoo_mktop and jsoo_mkcmis (#1877)
56
* Toplevel: fix for when use-js-strings is disabled (#1997)
57
runtime/js/mlBytes.js
@@ -104,7 +104,7 @@ function caml_utf8_of_utf16(s) {
104
0x80 | (c & 0x3f),
105
);
106
} else if (
107
- c >= 0xdbff ||
+ c > 0xdbff ||
108
i + 1 === l ||
109
(d = s.charCodeAt(i + 1)) < 0xdc00 ||
110
d > 0xdfff
0 commit comments