Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Unified Diff: runtime/include/dart_api.h

Issue 2640573003: Resolution for issue #5092: Unit test handle checks consider dangling handles to be valid. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.h » ('j') | runtime/vm/dart_api_impl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/include/dart_api.h
diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h
index 7bd749c38e0def7732033b4d1ec13ea5e4e7ded1..7efe945cab7b95d4874646d080a6ef09b2dc9bb4 100644
--- a/runtime/include/dart_api.h
+++ b/runtime/include/dart_api.h
@@ -259,6 +259,13 @@ typedef void (*Dart_WeakPersistentHandleFinalizer)(
typedef void (*Dart_PeerFinalizer)(void* peer);
/**
+ * Is this handle valid, or has it been freed?
+ *
+ * Requires there to be a current isolate.
+ */
+DART_EXPORT bool Dart_IsValid(Dart_Handle handle);
siva 2017/01/18 23:27:06 Why do we need this new API call, the issue you ar
bkonyi 2017/01/19 01:05:13 I was following the pattern of Dart_IsError so jus
+
+/**
* Is this an error handle?
*
* Requires there to be a current isolate.
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.h » ('j') | runtime/vm/dart_api_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698