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

[weakref] FinalizationRegistry.prototype.cleanupSome & "maybe" GC interleaved with queueMicrotask, MutationObserver #25496

Conversation

rwaldron
Copy link
Contributor

@jugglinmike these are variants of https://github.com/web-platform-tests/wpt/blob/master/js/builtins/weakrefs/gc-has-one-chance-to-call-cleanupCallback.optional.any.js, where the generic await ticks++; has been replaced with:

  • queueMicrotask
  • queueMicrotaskByMutationObserver (which is a wrapper around a mutation observer)

…erleaved with queueMicrotask, MutationObserver
Copy link
Contributor

@jugglinmike jugglinmike left a comment

Choose a reason for hiding this comment

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

I have one suggestion that also applies to the await-driven versions that we already merged. Sorry I didn't catch it in my review for that pull request!

… GC interleaved with queueMicrotask, MutationObserver
@wpt-pr-bot
Copy link
Collaborator

There are no reviewers for this pull request. Please reach out on W3C's irc server (irc.w3.org, port 6665) on channel #testing (web client) to get help with this. Thank you!

Copy link
Contributor

@jugglinmike jugglinmike left a comment

Choose a reason for hiding this comment

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

Are these expected to pass in any browsers today?

…"maybe" GC interleaved with queueMicrotask, MutationObserver
@jugglinmike jugglinmike merged commit f0fa908 into web-platform-tests:master Sep 19, 2020
@nagelmodel
Copy link

Hello

@rwaldron rwaldron deleted the weakref-finalizationregistry-microtask-interaction-1 branch September 21, 2020 19:46
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.

None yet

6 participants