From 742729ccfe98bb6c38453a45213d873f0579d1dd Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Mon, 30 Nov 2020 11:28:25 +0100 Subject: [PATCH] [HTML5] Remove file flags from writeFile in setup. Flags where deprecated and partly in removed in emscripten 2.0.9. --- 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 488753d7042..44b104922e4 100644 --- a/platform/javascript/js/libs/library_godot_os.js +++ b/platform/javascript/js/libs/library_godot_os.js @@ -200,7 +200,7 @@ const GodotFS = { } FS.mkdirTree(dir); } - FS.writeFile(path, new Uint8Array(buffer), { 'flags': 'wx+' }); + FS.writeFile(path, new Uint8Array(buffer)); }, }, };