-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Remove some of our hacks around JSPromise now that we have better APIs. #45591
Conversation
}); | ||
} | ||
|
||
/// Typedef for the function that initializes the flutter engine. |
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.
It's up to you if you want to make this typed a bit better by having a non-external
function that takes in the typedefs, does the toJS
conversions, and then forwards them to a (private) external
factory function.
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.
Hmm, I guess maybe it's better to keep a little bit of type safety here.
auto label is removed for flutter/engine/45591, due to - The status or check suite Linux mac_unopt has failed. Please fix the issues identified (or deflake) before re-applying this label. |
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.
Thanks for the cleanup!
…tter APIs." (#45660) Reverts #45591 This is somehow causing some issues with the hot reload tests and blocking engine -> framework rolls. See flutter/flutter#134455
…134462) flutter/engine@0774ddc...06696e7 2023-09-11 [email protected] Revert "Remove some of our hacks around JSPromise now that we have better APIs." (flutter/engine#45660) 2023-09-11 [email protected] Roll Skia from 3ed290acb65f to e6225224fb4e (2 revisions) (flutter/engine#45658) 2023-09-11 [email protected] Update skwasm build to use safer flush call (flutter/engine#45652) 2023-09-11 [email protected] Remove some of our hacks around JSPromise now that we have better APIs. (flutter/engine#45591) 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] 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://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Our JSPromise hackery is causing some issues with the new dart roll. We should just use the
JSPromise
andJSFunction
support to simplify this. Note that I still have to do some hackery to constructJSPromise
objects and to invokeJSFunction
objects, and eventually we'll probably be able to simplify this even more once those APIs are baked intodart:js_interop