Pārlūkot izejas kodu

Fix godot_js_wrapper_create_cb regression

(cherry picked from commit 8447cbc16d064e1ffe0149a3c5f9d4b2868c1ea4)
Adam Scott 2 gadi atpakaļ
vecāks
revīzija
21e1148cc5

+ 1 - 1
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;