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

[WIP] Chrome's error line reporting is off-by-one in Chrome? #10921

Closed
wants to merge 1 commit into from

Conversation

Krinkle
Copy link

@Krinkle Krinkle commented Sep 16, 2023

Discovered via https://github.com/qunitjs/qunit where we integrate QUnit with grunt-contrib-qunit and verify how an uncaught error is reported.

Ref gruntjs/grunt-contrib-qunit#204.
Ref qunitjs/qunit@cb67c39.

Examples:

This broke between Puppeteer 9 and 21. I know that's a big gap. I don't have something more precise at the moment, and with workstations changing to ARM, and Puppeteer only recently supporting it, it's not particularly easy to narrow down.

@OrKoN
Copy link
Collaborator

OrKoN commented Sep 18, 2023

@Krinkle could you please report an issue with a minimal reproducible example?

@@ -1369,6 +1369,7 @@ describe('Page', function () {
page.goto(server.PREFIX + '/error.html'),
]);
expect(error.message).toContain('Fancy');
expect(error.stack).toContain('error.html:130');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is meant to be 13?

@OrKoN
Copy link
Collaborator

OrKoN commented Sep 18, 2023

ignore my previous comment, I am able to reproduce.

@jrandolf
Copy link
Contributor

Closing in favor of #10926.

@jrandolf jrandolf closed this Sep 18, 2023
@Krinkle Krinkle deleted the pageerror-line branch September 23, 2023 23:37
Krinkle added a commit to qunitjs/qunit that referenced this pull request Sep 23, 2023
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.

None yet

3 participants