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

Unified Diff: runtime/vm/dart_api_impl.cc

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
Index: runtime/vm/dart_api_impl.cc
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
index 22e23911615cecd9d72dcd545b018d2983ff3b1b..4a0d57933bfc5dadea42c7cacdd77dbb5afbaea2 100644
--- a/runtime/vm/dart_api_impl.cc
+++ b/runtime/vm/dart_api_impl.cc
@@ -759,6 +759,11 @@ void FinalizablePersistentHandle::Finalize(
// --- Handles ---
+DART_EXPORT bool Dart_IsValid(Dart_Handle handle) {
+ return Api::IsValid(handle);
+}
+
+
DART_EXPORT bool Dart_IsError(Dart_Handle handle) {
return Api::IsError(handle);
}

Powered by Google App Engine
This is Rietveld 408576698