Skip to content

Run WPT tests with -race and fix race in ReadableStream.cancel #4544

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

Merged
merged 2 commits into from
Feb 13, 2025

Conversation

mstoykov
Copy link
Contributor

@mstoykov mstoykov commented Feb 13, 2025

What?

Run wpt tests with -race and fix race in ReadableStream.cancel

Why?

So we catch race conditions

Checklist

  • I have performed a self-review of my code.
  • I have added tests for my changes.
  • I have run linter locally (make lint) and all checks pass.
  • I have run tests locally (make tests) and all tests pass.
  • I have commented on my code, particularly in hard-to-understand areas.

Related PR(s)/Issue(s)

@mstoykov mstoykov requested a review from a team as a code owner February 13, 2025 13:51
@mstoykov mstoykov requested review from inancgumus and codebien and removed request for a team February 13, 2025 13:51
codebien
codebien previously approved these changes Feb 13, 2025
Previously the reject of the promise was happening on the event loop,
but the argument which is a TypeError was created off it in a goroutine.

The goroutine isn't really needed, so the code is somewhat simplified
and handling more corner cases.
@mstoykov mstoykov requested a review from codebien February 13, 2025 15:07
@mstoykov mstoykov added this to the v1.0.0-rc1 milestone Feb 13, 2025
@mstoykov mstoykov changed the title Run WPT tests with race detection on Run WPT tests with -race and fix race in ReadableStream.cancel Feb 13, 2025
@mstoykov mstoykov merged commit 0f0c710 into master Feb 13, 2025
28 checks passed
@mstoykov mstoykov deleted the runWPTWorkflowWithRace branch February 13, 2025 16:17
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.

3 participants