Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LibWeb/HTML: Include better information in 'report an exception' event #3232

Merged

Conversation

shannonbooth
Copy link
Contributor

Instead of always reporting a colno and lineno of zero try and use the values from the Error object that may be provided, falling back to the source location of the invocation if not provided. We can definitely improve the reporting even more, but this is a start!

Also update this function to latest spec while we're in the area.

@shannonbooth shannonbooth force-pushed the report-an-exception-improvements branch from 15fd8bd to 3df843e Compare January 12, 2025 06:38
@shannonbooth shannonbooth marked this pull request as draft January 12, 2025 07:37
@shannonbooth shannonbooth marked this pull request as ready for review January 12, 2025 07:46
Instead of always reporting a colno and lineno of zero try and use the
values from the Error object that may be provided, falling back to the
source location of the invocation if not provided. We can definitely
improve the reporting even more, but this is a start!

Also update this function to latest spec while we're in the area.
@shannonbooth shannonbooth force-pushed the report-an-exception-improvements branch from 3df843e to 53b8131 Compare January 12, 2025 07:46
@tcl3 tcl3 merged commit 57479c2 into LadybirdBrowser:master Jan 12, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants