diff --git a/browse/test/snapshot.test.ts b/browse/test/snapshot.test.ts index d3c012eaf..0d175ce98 100644 --- a/browse/test/snapshot.test.ts +++ b/browse/test/snapshot.test.ts @@ -14,7 +14,10 @@ import { handleMetaCommand } from '../src/meta-commands'; import * as fs from 'fs'; const handleReadCommand = (cmd: string, args: string[], b: BrowserManager) => - _handleReadCommand(cmd, args, b.getActiveSession()); + // Regression: the bridge must forward `b` — read-commands' now-unconditional + // JS-origin assertion calls bm.hasCookieImports(); omitting it TypeErrors + // every read. + _handleReadCommand(cmd, args, b.getActiveSession(), b); const handleWriteCommand = (cmd: string, args: string[], b: BrowserManager) => _handleWriteCommand(cmd, args, b.getActiveSession(), b);