Closed savoygrizzly closed 1 year ago
jail.setSync("hook", function (...args) {
return hook.function();
}, { reference: true });
const fn = "async function execute() { return await hook.apply(undefined, [], { result: { promise: true } });}";
Is there any way to clone an async function into the context using setSync ?
Where hook is an async function like so
So far I don't see a way.
I have tried everything I could find from online examples since the doc is.... lacking to say the least.
Thanks.