Skip to content
Snippets Groups Projects
Commit 02cd0073 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Log the problem codepoint when reporting error in utf8_encode()

parent f3243937
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -4612,7 +4612,7 @@ js_utf8_encode(JSContext *cx, uintN argc, jsval *arglist)
int result = utf8_putc(outbuf, len - 1, codepoint);
if(result < 1) {
free(outbuf);
JS_ReportError(cx, "utf8_encode: error: %d", result);
JS_ReportError(cx, "utf8_encode: error: %d for codepoint %X", result, codepoint);
return JS_FALSE;
}
outbuf[result] = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment