From 8447cbc16d064e1ffe0149a3c5f9d4b2868c1ea4 Mon Sep 17 00:00:00 2001 From: Adam Scott Date: Tue, 3 Oct 2023 12:32:36 -0400 Subject: [PATCH] Fix godot_js_wrapper_create_cb regression --- platform/web/js/libs/library_godot_javascript_singleton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/web/js/libs/library_godot_javascript_singleton.js b/platform/web/js/libs/library_godot_javascript_singleton.js index cbe59230ee1..1764c9a0266 100644 --- a/platform/web/js/libs/library_godot_javascript_singleton.js +++ b/platform/web/js/libs/library_godot_javascript_singleton.js @@ -210,7 +210,7 @@ const GodotJSWrapper = { // This is safe! JavaScript is single threaded (and using it in threads is not a good idea anyway). GodotJSWrapper.cb_ret = null; const args = Array.from(arguments); - const argsProxy = GodotJSWrapper.MyProxy(args); + const argsProxy = new GodotJSWrapper.MyProxy(args); func(p_ref, argsProxy.get_id(), args.length); argsProxy.unref(); const ret = GodotJSWrapper.cb_ret;