Fix godot_js_wrapper_create_cb regression
(cherry picked from commit 8447cbc16d
)
This commit is contained in:
parent
55ae5b0a78
commit
21e1148cc5
|
@ -210,7 +210,7 @@ const GodotJSWrapper = {
|
||||||
// This is safe! JavaScript is single threaded (and using it in threads is not a good idea anyway).
|
// This is safe! JavaScript is single threaded (and using it in threads is not a good idea anyway).
|
||||||
GodotJSWrapper.cb_ret = null;
|
GodotJSWrapper.cb_ret = null;
|
||||||
const args = Array.from(arguments);
|
const args = Array.from(arguments);
|
||||||
const argsProxy = GodotJSWrapper.MyProxy(args);
|
const argsProxy = new GodotJSWrapper.MyProxy(args);
|
||||||
func(p_ref, argsProxy.get_id(), args.length);
|
func(p_ref, argsProxy.get_id(), args.length);
|
||||||
argsProxy.unref();
|
argsProxy.unref();
|
||||||
const ret = GodotJSWrapper.cb_ret;
|
const ret = GodotJSWrapper.cb_ret;
|
||||||
|
|
Loading…
Reference in New Issue