Skip to content

browser: fix some mappings and remove overzealous TODOs #4534

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 1 commit into from
Feb 11, 2025

Conversation

mstoykov
Copy link
Contributor

What?

More fixes for browser mappings and removing some overzealous TODOs

Why?

While trying to fix some mappings that originally I recognized as places that races are possible, I found that is not the case.

As mappings are just a map that is methods/fields to their values, as long as no usage the runtime happens outside of any mapping it is fine.

This is the case for most cases, this fixes the one that isn't.

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)

While trying to fix some mappings that originally I recognized as places
that races are possible, I found that is not the case.

As mappings are just a map that is methods/fields to their values, as
long as no usage the runtime happens outside of any mapping it is fine.

This is the case for most cases, this fixes the one that isn't.
@mstoykov mstoykov added this to the v0.57.0 milestone Feb 10, 2025
@mstoykov mstoykov requested a review from a team as a code owner February 10, 2025 21:25
@mstoykov mstoykov requested review from inancgumus and joanlopez and removed request for a team February 10, 2025 21:25
Copy link
Contributor

@inancgumus inancgumus left a comment

Choose a reason for hiding this comment

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

As mappings are just a map that is methods/fields to their values, as long as no usage the runtime happens outside of any mapping it is fine.

Exactly. Thanks 👍

@mstoykov mstoykov merged commit fb406e6 into master Feb 11, 2025
27 of 28 checks passed
@mstoykov mstoykov deleted the fixBrowserRacesInMapping2 branch February 11, 2025 08:30
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