Fix bug in stringToCesu8 conversion for 0x7ff
JerryScript-DCO-1.0-Signed-off-by: Geoff Gustafson
@@ -249,7 +249,7 @@ function DebuggerClient(address)
{
var chr = string.charCodeAt(i);
- if (chr >= 0x7ff)
+ if (chr > 0x7ff)
{
byteLength++;
}
@@ -272,7 +272,7 @@ function DebuggerClient(address)
{
var chr = string.charCodeAt(i);
- if (chr >= 0x7ff)
+ if (chr > 0x7ff)
{
result[offset] = 0xe0 | (chr >> 12);
result[offset + 1] = 0x80 | ((chr >> 6) & 0x3f);
