summaryrefslogtreecommitdiffstats
path: root/platform/web/js/libs/library_godot_javascript_singleton.js
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-10-04 15:43:42 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-10-04 15:43:42 +0200
commita904e78fd9164ab49a25f63ce9f2341f327fc606 (patch)
tree7540496c70a29b681b34740d2de7e35e4c8eb101 /platform/web/js/libs/library_godot_javascript_singleton.js
parentd7bca20359e551b837777ade9cd4eadaf64d5daf (diff)
parent8447cbc16d064e1ffe0149a3c5f9d4b2868c1ea4 (diff)
downloadredot-engine-a904e78fd9164ab49a25f63ce9f2341f327fc606.tar.gz
Merge pull request #82736 from adamscott/fix-#81105-regression
Fix `godot_js_wrapper_create_cb` regression
Diffstat (limited to 'platform/web/js/libs/library_godot_javascript_singleton.js')
-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;