(source: string)
| 13 | }; |
| 14 | |
| 15 | const wrapCallableBody = (source: string): string => |
| 16 | [ |
| 17 | "const __fn = (", |
| 18 | source, |
| 19 | ");", |
| 20 | `if (typeof __fn !== "function") throw new Error(${JSON.stringify(CALLABLE_ERROR)});`, |
| 21 | "return await __fn();", |
| 22 | ].join("\n"); |
| 23 | |
| 24 | const wrapNamedFunctionBody = (source: string, name: string): string => |
| 25 | [source, `return await ${name}();`].join("\n"); |
no outgoing calls
no test coverage detected