From 8d93c723f16e3a94b65ce68f91381b3b531a5ef7 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Mon, 30 Nov 2020 10:32:54 +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)); }, }, };