From 962ecf2cae7afe8d32b40d316109507828503c6a Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Thu, 1 Aug 2024 13:28:00 -0700 Subject: [PATCH] common: fix zygote opts --- common/src/zygote.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/common/src/zygote.ts b/common/src/zygote.ts index a43a96c103..a3f3b7c86c 100644 --- a/common/src/zygote.ts +++ b/common/src/zygote.ts @@ -5,14 +5,16 @@ import os from 'os'; export type Zygote = () => PluginFork; -export function createZygote(name: string): Zygote { - let zygote = sdk.fork(); +export function createZygote(name?: string, filename?: string): Zygote { + const opts = { + name, + filename, + }; + let zygote = sdk.fork(opts); function* next() { while (true) { const cur = zygote; - zygote = sdk.fork({ - name, - }); + zygote = sdk.fork(opts); yield cur; } }