diff options
author | Alon Zakai (kripken) <alonzakai@gmail.com> | 2018-08-11 09:49:19 -0700 |
---|---|---|
committer | Alon Zakai (kripken) <alonzakai@gmail.com> | 2018-08-11 09:49:19 -0700 |
commit | 71c03883b50b98441ce457fb3cec1701a2e11842 (patch) | |
tree | ffcde4e42ede20ce2c7120bc3892793d34bdc7e0 /platform/javascript/os_javascript.cpp | |
parent | 73cf0fd30524a6acc4400ef069210d90eaba29a2 (diff) | |
download | redot-engine-71c03883b50b98441ce457fb3cec1701a2e11842.tar.gz |
use console.warn instead of Module.printErr: emscripten no longer exports printErr by default, and instead err() should be used in code seen by the optimizer; however, as Godot only runs on the Web (and not in node.js or elsewhere), using console.warn directly is good enough, and will work in all versions if emscripten
Diffstat (limited to 'platform/javascript/os_javascript.cpp')
-rw-r--r-- | platform/javascript/os_javascript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/javascript/os_javascript.cpp b/platform/javascript/os_javascript.cpp index b9d586e233..a2c6bdd629 100644 --- a/platform/javascript/os_javascript.cpp +++ b/platform/javascript/os_javascript.cpp @@ -788,7 +788,7 @@ bool OS_JavaScript::main_loop_iterate() { /* clang-format off */ EM_ASM( FS.syncfs(function(err) { - if (err) { Module.printErr('Failed to save IDB file system: ' + err.message); } + if (err) { console.warn('Failed to save IDB file system: ' + err.message); } }); ); /* clang-format on */ |