Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/playwright-core/src/cli/driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ export function runDriver() {
});
// eslint-disable-next-line no-restricted-properties
const transport = new PipeTransport(process.stdout, process.stdin);
// The client may exit while messages are still in flight. Ignore the EPIPE so the
// driver keeps running until stdin closes, and then closes the browsers gracefully.
// eslint-disable-next-line no-restricted-properties
process.stdout.on('error', () => {});
transport.onmessage = (message: string) => dispatcherConnection.dispatch(JSON.parse(message));
// Certain Language Binding JSON parsers (e.g. .NET) do not like strings with lone surrogates.
const isJavaScriptLanguageBinding = !process.env.PW_LANG_NAME || process.env.PW_LANG_NAME === 'javascript';
Expand Down
Loading