Merge pull request #82736 from adamscott/fix-#81105-regression

Fix `godot_js_wrapper_create_cb` regression
This commit is contained in:
Rémi Verschelde
2023-10-04 15:43:42 +02:00

View File

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