Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[web] use callConstructor for FinalizationRegistry#40845

Closed
yjbanov wants to merge 1 commit into
flutter-team-archive:mainfrom
yjbanov:fix-finalization-registry-2
Closed

[web] use callConstructor for FinalizationRegistry#40845
yjbanov wants to merge 1 commit into
flutter-team-archive:mainfrom
yjbanov:fix-finalization-registry-2

Conversation

@yjbanov

@yjbanov yjbanov commented Apr 1, 2023

Copy link
Copy Markdown
Contributor

Use js_util.callConstructor to initialize FinalizationRegistry to make it compatible with dart2js.

Fixes b/276167870

This is the second attempt to land #40798. The previous attempt failed because in JS strings are not objects 🤷

@flutter-dashboard flutter-dashboard Bot added the platform-web Code specifically for the web engine label Apr 1, 2023
@yjbanov
yjbanov force-pushed the fix-finalization-registry-2 branch from 4b0aa78 to 9d79ef7 Compare April 1, 2023 16:30
@flutter-dashboard

Copy link
Copy Markdown

Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change).

If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review.

Changes reported for pull request #40845 at sha 9d79ef7

@yjbanov

yjbanov commented Apr 2, 2023

Copy link
Copy Markdown
Contributor Author

Closing this one as it builds on top of a reverted PR: #40861

I'll start a new one that contains both fixes.

@yjbanov yjbanov closed this Apr 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

platform-web Code specifically for the web engine will affect goldens

Development

Successfully merging this pull request may close these issues.

1 participant