mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-09-18 05:16:21 -07:00
test: clone VM results across Electron boundaries
- Clone tokenizer VM results into the host realm - Expect null-prototype profile maps in IPC validation tests
This commit is contained in:
@@ -396,7 +396,8 @@ function createInjectedScriptVm(store: ReplayMessageStore): (script: string) =>
|
||||
Set,
|
||||
String,
|
||||
});
|
||||
return async (script: string) => await vm.runInContext(script, context);
|
||||
// Clone results into the host realm, matching Electron's process boundary.
|
||||
return async (script: string) => structuredClone(await vm.runInContext(script, context));
|
||||
}
|
||||
|
||||
export function createReplayTokenizerDeps(fixture: GoldenFixture): TokenizerServiceDeps {
|
||||
|
||||
Reference in New Issue
Block a user