Skip to content

Commit

Permalink
fix(eval): group should not be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Oct 14, 2020
1 parent ed03ed1 commit 3298f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-eval/src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}`, {
Expand Down

0 comments on commit 3298f46

Please sign in to comment.