( args: Record<string, string>, script: string, )
| 42 | }; |
| 43 | |
| 44 | const asyncSandboxedFunction = async function ( |
| 45 | args: Record<string, string>, |
| 46 | script: string, |
| 47 | ) { |
| 48 | const vals = Object.values(args); |
| 49 | const f = createSandboxedFunction(args, script, true); |
| 50 | return await f.bind({})(...vals); |
| 51 | }; |
| 52 | |
| 53 | export { asyncSandboxedFunction, sandboxedFunction }; |
no test coverage detected