mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Use stdout/-err for all messages in HTML5 platform
This commit is contained in:
parent
81554dac61
commit
76522624cb
4 changed files with 8 additions and 8 deletions
|
@ -69,7 +69,7 @@ Variant JavaScript::eval(const String &p_code, bool p_use_global_exec_context) {
|
|||
eval_ret = eval(UTF8ToString(CODE));
|
||||
}
|
||||
} catch (e) {
|
||||
console.warn(e);
|
||||
err(e);
|
||||
eval_ret = null;
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,7 @@ Variant JavaScript::eval(const String &p_code, bool p_use_global_exec_context) {
|
|||
if (array_ptr!==0) {
|
||||
_free(array_ptr)
|
||||
}
|
||||
console.warn(e);
|
||||
err(e);
|
||||
// fall through
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue