Does dart:ffi
Handle have an implicit conversion to bool?
#52530
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
closed-as-intended
Closed as the reported issue is expected behavior
library-ffi
https://api.dart.dev/stable/3.0.2/dart-ffi/Handle-class.html
Based on usage in Flutter it appears to:
https://github.com/flutter/engine/blob/main/lib/ui/platform_dispatcher.dart#L207
https://github.com/flutter/engine/blob/main/lib/ui/platform_dispatcher.dart#L209
But that's not at all clear from the docs.
(This came up because I appear to have broken this implicit conversion in my FFI hacking, which is likely my bug, but might also just be some bug/quirk in existing FFI that I somehow broke?)
shorebirdtech/shorebird#532 (comment)
The text was updated successfully, but these errors were encountered: