From 634d9d38da3c5018b934d4602388466c6c4547c4 Mon Sep 17 00:00:00 2001 From: Geoff Gustafson Date: Wed, 4 Apr 2018 01:17:16 -0700 Subject: [PATCH] Fix bug in stringToCesu8 conversion for 0x7ff (#2267) JerryScript-DCO-1.0-Signed-off-by: Geoff Gustafson geoff@linux.intel.com --- jerry-debugger/jerry-client-ws.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jerry-debugger/jerry-client-ws.html b/jerry-debugger/jerry-client-ws.html index b8f3f015c..f7f251a9b 100644 --- a/jerry-debugger/jerry-client-ws.html +++ b/jerry-debugger/jerry-client-ws.html @@ -249,9 +249,9 @@ function DebuggerClient(address) { var chr = string.charCodeAt(i); - if (chr >= 0x7ff) + if (chr > 0x7ff) { - byteLength ++; + byteLength++; } if (chr >= 0x7f) @@ -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);