소스 검색

Fix godot_js_wrapper_create_cb regression

Adam Scott 1 년 전
부모
커밋
8447cbc16d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      platform/web/js/libs/library_godot_javascript_singleton.js

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