Skip to content
Snippets Groups Projects
Commit 5a76ab78 authored by deuce's avatar deuce
Browse files

Fix return value of write()

parent 97f41c60
No related branches found
No related tags found
No related merge requests found
...@@ -763,7 +763,9 @@ js_write(JSContext *cx, uintN argc, jsval *arglist) ...@@ -763,7 +763,9 @@ js_write(JSContext *cx, uintN argc, jsval *arglist)
return(JS_FALSE); return(JS_FALSE);
for (i = 0; i < argc; i++) { for (i = 0; i < argc; i++) {
JSVALUE_TO_STRING(cx, argv[i], cstr, NULL); if((str=JS_ValueToString(cx, argv[i]))==NULL)
return(JS_FALSE);
JSSTRING_TO_STRING(cx, str, cstr, NULL);
if(cstr==NULL) if(cstr==NULL)
return(JS_FALSE); return(JS_FALSE);
rc=JS_SUSPENDREQUEST(cx); rc=JS_SUSPENDREQUEST(cx);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment