| Index: runtime/vm/dart_api_impl_test.cc
|
| diff --git a/runtime/vm/dart_api_impl_test.cc b/runtime/vm/dart_api_impl_test.cc
|
| index 511ef579d0613f49cb6eae1bccf6b271bb07d77f..ce86fe07d97a2cf2f3f13163b332e26f8134b861 100644
|
| --- a/runtime/vm/dart_api_impl_test.cc
|
| +++ b/runtime/vm/dart_api_impl_test.cc
|
| @@ -1438,6 +1438,19 @@ TEST_CASE(WeakPersistentHandleCallback) {
|
| }
|
|
|
|
|
| +UNIT_TEST_CASE(WeakPersistentHandlesCallbackShutdown) {
|
| + TestCase::CreateTestIsolate();
|
| + Dart_EnterScope();
|
| + Dart_Handle ref = Dart_True();
|
| + int peer = 1234;
|
| + Dart_NewWeakPersistentHandle(ref,
|
| + &peer,
|
| + WeakPersistentHandlePeerFinalizer);
|
| + Dart_ShutdownIsolate();
|
| + EXPECT(peer == 42);
|
| +}
|
| +
|
| +
|
| TEST_CASE(ObjectGroups) {
|
| Dart_Handle strong = Dart_Null();
|
| EXPECT(Dart_IsNull(strong));
|
|
|