-
Notifications
You must be signed in to change notification settings - Fork 6k
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. |
mdebbar
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.
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
JSPromiseandJSFunctionsupport to simplify this. Note that I still have to do some hackery to constructJSPromiseobjects and to invokeJSFunctionobjects, and eventually we'll probably be able to simplify this even more once those APIs are baked intodart:js_interop