Use debug_printf for script print() function, so it's more visible on Windows
This was SVN commit r10435.
This commit is contained in:
parent
18e595a5a6
commit
85e16f95b1
@ -303,7 +303,7 @@ JSBool print(JSContext* cx, uintN argc, jsval* vp)
|
||||
std::string str;
|
||||
if (!ScriptInterface::FromJSVal(cx, JS_ARGV(cx, vp)[i], str))
|
||||
return JS_FALSE;
|
||||
printf("%s", str.c_str());
|
||||
debug_printf(L"%hs", str.c_str());
|
||||
}
|
||||
fflush(stdout);
|
||||
JS_SET_RVAL(cx, vp, JSVAL_VOID);
|
||||
|
Loading…
Reference in New Issue
Block a user