-
Notifications
You must be signed in to change notification settings - Fork 6k
Initial pass to cleanup dom.dart to use newer JS interop styles #54093
Conversation
These were needed for when we lowered things on the procedure side, but since we have invocation-sensitive lowerings, we don't need to worry about accidentally providing more arguments than were passed by the interop method caller.
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact "@test-exemption-reviewer" in the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
ditman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
I think the code in dom.dart should be indirectly tested by the tests of the web engine (that run in browser) |
|
Thanks!
Yup! Right now it just has a TODO on it, but I want to make this a proper deprecation. |
…152344) flutter/engine@d665bf8...21629ec 2024-07-25 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 3.25.12 to 3.25.13 (flutter/engine#54039) 2024-07-25 [email protected] Initial pass to cleanup dom.dart to use newer JS interop styles (flutter/engine#54093) 2024-07-25 [email protected] Roll buildroot to e92499322525306bd637eb79d1e6dd507d5f3062 (flutter/engine#54113) 2024-07-25 [email protected] [iOS] enable FlutterMetalLayer. (flutter/engine#54121) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…lutter#152344) flutter/engine@d665bf8...21629ec 2024-07-25 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 3.25.12 to 3.25.13 (flutter/engine#54039) 2024-07-25 [email protected] Initial pass to cleanup dom.dart to use newer JS interop styles (flutter/engine#54093) 2024-07-25 [email protected] Roll buildroot to e92499322525306bd637eb79d1e6dd507d5f3062 (flutter/engine#54113) 2024-07-25 [email protected] [iOS] enable FlutterMetalLayer. (flutter/engine#54121) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…lutter#152344) flutter/engine@d665bf8...21629ec 2024-07-25 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 3.25.12 to 3.25.13 (flutter/engine#54039) 2024-07-25 [email protected] Initial pass to cleanup dom.dart to use newer JS interop styles (flutter/engine#54093) 2024-07-25 [email protected] Roll buildroot to e92499322525306bd637eb79d1e6dd507d5f3062 (flutter/engine#54113) 2024-07-25 [email protected] [iOS] enable FlutterMetalLayer. (flutter/engine#54121) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
This only addresses the following:
JSVoidin favor ofvoid.JSVoid, which is just a typedef, should be deprecated and removed eventually.Still left to do (not comprehensive):
js_util.package:webequivalent for easier maintenance.