From b7b9b902e5986ae9ea0a4b581e20e5987c67f4d4 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Wed, 18 Aug 2021 10:30:50 +0100 Subject: [PATCH] Update Godot Javascript FS library to manually depend on ERRNO_CODES. Fixes compatibility with Emscripten 2.0.26+. (cherry picked from commit 71fb2429a0229d03ada771a5d292e1c6ea82d62a) --- platform/javascript/js/libs/library_godot_os.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/javascript/js/libs/library_godot_os.js b/platform/javascript/js/libs/library_godot_os.js index 5aa750757c5..99e7ee8b5f2 100644 --- a/platform/javascript/js/libs/library_godot_os.js +++ b/platform/javascript/js/libs/library_godot_os.js @@ -106,7 +106,7 @@ autoAddDeps(GodotConfig, '$GodotConfig'); mergeInto(LibraryManager.library, GodotConfig); const GodotFS = { - $GodotFS__deps: ['$FS', '$IDBFS', '$GodotRuntime'], + $GodotFS__deps: ['$ERRNO_CODES', '$FS', '$IDBFS', '$GodotRuntime'], $GodotFS__postset: [ 'Module["initFS"] = GodotFS.init;', 'Module["copyToFS"] = GodotFS.copy_to_fs;',