Skip to content

Conversation

@BR0kEN-
Copy link
Contributor

@BR0kEN- BR0kEN- commented Nov 6, 2021

@BR0kEN- BR0kEN- requested a review from a team as a code owner November 6, 2021 18:27
@BR0kEN- BR0kEN- requested review from adamraine and removed request for a team November 6, 2021 18:27
@google-cla google-cla bot added the cla: yes label Nov 6, 2021
@BR0kEN- BR0kEN- changed the title Resolves #13332: Preserve error stack when timing out a promise #13332: Preserve error stack when timing out a promise Nov 6, 2021
@BR0kEN- BR0kEN- changed the title #13332: Preserve error stack when timing out a promise promise.race: Preserve error stack when timing out a promise Nov 6, 2021
@BR0kEN- BR0kEN- changed the title promise.race: Preserve error stack when timing out a promise promise.race: preserve error stack when timing out a promise Nov 6, 2021
@adamraine
Copy link
Contributor

This looks good! While you're here, I think there is one more usage of error timeout that we can upgrade:

/** @type {NodeJS.Timeout} */
let timeout;
const timeoutPromise = new Promise((_, reject) => {
timeout = setTimeout(() => reject(new Error('Timed out waiting to kill Chrome')), 5000);
});

@adamraine adamraine changed the title promise.race: preserve error stack when timing out a promise misc: preserve error stack when timing out a promise Nov 8, 2021
@BR0kEN-
Copy link
Contributor Author

BR0kEN- commented Nov 8, 2021

Yeah, true, I was searching across lighthouse-core only. Give me a couple of mins.

@connorjclark connorjclark changed the title misc: preserve error stack when timing out a promise misc: preserve error stack when using promise timeout Nov 8, 2021
@BR0kEN-
Copy link
Contributor Author

BR0kEN- commented Nov 9, 2021

All failed checks seem to be unrelated to changes. What are the next actions @adamraine?

@adamraine
Copy link
Contributor

Correct, failed checks are unrelated. #13342 should fix the smoke failure, after that we can land this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants