Fix godot_js_wrapper_create_cb regression

This commit is contained in:
Adam Scott 2023-10-03 12:32:36 -04:00
parent f5696c311c
commit 8447cbc16d
No known key found for this signature in database
GPG Key ID: 1352C2919D96DDDF
1 changed files with 1 additions and 1 deletions

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;