Skip to content

Commit 1c5cb5b

Browse files
committed
Fix bug in stringToCesu8 conversion for 0x7ff
JerryScript-DCO-1.0-Signed-off-by: Geoff Gustafson geoff@linux.intel.com
1 parent ff37959 commit 1c5cb5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jerry-debugger/jerry-client-ws.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,9 @@ <h2>JerryScript HTML (WebSocket) Debugger Client</h2>
249249
{
250250
var chr = string.charCodeAt(i);
251251

252-
if (chr >= 0x7ff)
252+
if (chr > 0x7ff)
253253
{
254-
byteLength ++;
254+
byteLength++;
255255
}
256256

257257
if (chr >= 0x7f)

0 commit comments

Comments
 (0)