mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
f592a11e51
Changes `FfiNative` instance methods on `NativeFieldWrapperClass`es that have `Pointer<Void>` conversion to check for `nullptr`. If the native field has `0`/`nullptr` a `StateError` is thrown: "Bad state: Native field is nullptr." This only makes sense if the first native field is used to point to the C++ object corresponding to the Dart object. As far as we know all current use cases do so. TEST=pkg/vm/testcases/transformations/ffi/ffinative.dart.expect TEST=tests/ffi/vmspecific_ffi_native_test.dart Closes: https://github.com/dart-lang/sdk/issues/49620 Change-Id: I92f760c33d391476010722358f9713fa4491ab61 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254200 Reviewed-by: Martin Kustermann <kustermann@google.com> Commit-Queue: Daco Harkes <dacoharkes@google.com> |
||
---|---|---|
.. | ||
bin | ||
lib | ||
test | ||
testcases/transformations | ||
tool | ||
analysis_options.yaml | ||
LICENSE | ||
OWNERS | ||
pubspec.yaml | ||
README.md |
This package hosts VM specific Dart code and helper scripts.