summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Scott <ascott.ca@gmail.com>2023-10-03 12:32:36 -0400
committerAdam Scott <ascott.ca@gmail.com>2023-10-03 12:52:20 -0400
commit8447cbc16d064e1ffe0149a3c5f9d4b2868c1ea4 (patch)
tree6144a6a5ddd5a565a0ae8ddafe5270d9cfac1ce2
parentf5696c311cdb09e0a34fa4ba7ef5d2524c515b89 (diff)
downloadredot-engine-8447cbc16d064e1ffe0149a3c5f9d4b2868c1ea4.tar.gz
Fix godot_js_wrapper_create_cb regression
-rw-r--r--platform/web/js/libs/library_godot_javascript_singleton.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/web/js/libs/library_godot_javascript_singleton.js b/platform/web/js/libs/library_godot_javascript_singleton.js
index cbe59230ee..1764c9a026 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;