Skip to main content

Module web_error

Module web_error 

Source
Expand description

WebErrorJs — QuickJS binding for ferridriver::web_error::WebError.

Mirrors Playwright’s client-side WebError class from /tmp/playwright/packages/playwright-core/src/client/webError.ts and the public-type contract in /tmp/playwright/packages/playwright-core/types/types.d.ts:21658error(): Error returning a native JS Error instance (not a plain object) so instanceof Error holds in script-land. page() is omitted (symmetric with DownloadJs / FileChooserJs / ConsoleMessageJs); script-land callers have no need for the page back-reference.

Structs§

WebErrorJs

Functions§

build_native_error
Shared helper: construct a native JS Error from an ErrorDetails snapshot. Reused by WebErrorJs::error (context-scoped) AND by PageJs::waitForEvent('pageerror') (page-scoped, Playwright-parity Promise<Error>).