diff --git a/packages/server/src/jsRunner/vm/isolated-vm.ts b/packages/server/src/jsRunner/vm/isolated-vm.ts index 928d1b8afa..b0692f0fd1 100644 --- a/packages/server/src/jsRunner/vm/isolated-vm.ts +++ b/packages/server/src/jsRunner/vm/isolated-vm.ts @@ -99,14 +99,7 @@ export class IsolatedVM implements VM { } withContext(context: Record, executeWithContext: () => T) { - this.addToContext({ - ...context, - Snippets: { - specialFunction: function (special: string) { - return "hello world! " + special - }, - }, - }) + this.addToContext(context) try { return executeWithContext()