From f03d9a01783df46b4780d0c66d7c7e963a114f19 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 13 Feb 2024 16:30:02 +0100 Subject: [PATCH] Clean --- packages/server/src/jsRunner/vm/index.ts | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/packages/server/src/jsRunner/vm/index.ts b/packages/server/src/jsRunner/vm/index.ts index 5471747fdf..ac01a52a6e 100644 --- a/packages/server/src/jsRunner/vm/index.ts +++ b/packages/server/src/jsRunner/vm/index.ts @@ -93,26 +93,6 @@ export class IsolatedVM implements VM { } }` const helpersSource = loadBundle(BundleType.HELPERS) - // const helpersModule = this.isolate.compileModuleSync( - // `${injectedRequire};${helpersSource}` - // ) - - // helpersModule.instantiateSync(this.vm, specifier => { - // if (specifier === "crypto") { - // const cryptoModule = this.registerCallbacks({ - // randomUUID: crypto.randomUUID, - // }) - // const module = this.isolate.compileModuleSync( - // `export default ${cryptoModule}` - // ) - // module.instantiateSync(this.vm, specifier => { - // throw new Error(`No imports allowed. Required: ${specifier}`) - // }) - // return module - // } - // throw new Error(`No imports allowed. Required: ${specifier}`) - // }) - this.moduleHandler.registerModule(`${injectedRequire};${helpersSource}`) return this }