mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00

Currently, whenever the page crashes, it emits an `'error'` event. Error event is a special type of event in node.js; if unhandled, it crashes the process. Instead of emitting `'error'` event, this patch switches to emitting `'crash'` event. Playwright users are free to handle the event however they like, or just to ignore it.