Fix runs
This commit is contained in:
parent
93fd5a2da5
commit
2042a95805
|
@ -3,7 +3,7 @@ import { IsolatedVM } from "../../jsRunner/vm"
|
|||
|
||||
export async function execute(ctx: Ctx) {
|
||||
const { script, context } = ctx.request.body
|
||||
const runner = new IsolatedVM(context)
|
||||
const runner = new IsolatedVM().withContext(context)
|
||||
|
||||
const result = runner.execute(`(function(){\n${script}\n})();`)
|
||||
ctx.body = result
|
||||
|
|
Loading…
Reference in New Issue