[Task]: Standardize error emitters in Puppeteer
Author: nroscinoCreated Jun 18, 2026Updated Jun 24, 2026
Task to do:
Create a consistent and unified interface for handling unhandled exceptions across both the CDP and WebDriver BiDi protocols by introducing a new ErrorObject class for the page.on('pageerror') and worker.on('error') events, instead of creating and returning an Error object that only mirrors the core properties (name, message, stack).
Source: puppeteer/puppeteer