refactor: simplify async function calls in asyncCall and Vm class
This commit is contained in:
@ -35,9 +35,7 @@ export class Vm {
|
||||
this.jail.setSync(
|
||||
plugin.getName(),
|
||||
new ivm.Reference(async (...args) => {
|
||||
const res = await plugin.run(...args);
|
||||
|
||||
return res;
|
||||
return await plugin.run(...args);
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user