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
This commit is contained in:
1 parent
73cf0fd305
commit
71c03883b5
3 files changed
+6
-6
No files matched your search
@@ -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 */
|
||||
|
||||
Reference in new issue
Block a user