diff --git a/platform/javascript/js/libs/library_pandemonium_javascript_singleton.js b/platform/javascript/js/libs/library_pandemonium_javascript_singleton.js index d4ab8c0c5..5c33d258c 100644 --- a/platform/javascript/js/libs/library_pandemonium_javascript_singleton.js +++ b/platform/javascript/js/libs/library_pandemonium_javascript_singleton.js @@ -205,7 +205,9 @@ const PandemoniumJSWrapper = { return; } const args = Array.from(arguments); - func(p_ref, PandemoniumJSWrapper.get_proxied(args), args.length); + const argsProxy = new PandemoniumJSWrapper.MyProxy(args); + func(p_ref, argsProxy.get_id(), args.length); + argsProxy.unref(); }; id = PandemoniumJSWrapper.get_proxied(cb); return id;