From 3298f4639748fa5bf35caecddfc1191c12f4bc4f Mon Sep 17 00:00:00 2001 From: Shigma <1700011071@pku.edu.cn> Date: Wed, 14 Oct 2020 16:03:09 +0800 Subject: [PATCH] fix(eval): group should not be undefined --- packages/plugin-eval/src/worker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-eval/src/worker.ts b/packages/plugin-eval/src/worker.ts index 67f9a6e610..749ab0ba70 100644 --- a/packages/plugin-eval/src/worker.ts +++ b/packages/plugin-eval/src/worker.ts @@ -140,7 +140,7 @@ export class WorkerAPI { let result: any try { result = await vm.run(`{ - const { send, exec, user } = global[Symbol.for("${key}")]; + const { send, exec, user, group } = global[Symbol.for("${key}")]; delete global[Symbol.for("${key}")]; \n${source} }`, {