From 92ac417fdf8beb167fa4e29cc38630df48be415f Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 29 Feb 2024 16:31:50 +0000 Subject: [PATCH] Removing accidentally commited stuff. --- packages/server/src/jsRunner/vm/isolated-vm.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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()