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

Unified Diff: dart/runtime/bin/eventhandler_macos.h

Issue 879353003: Introduce optional 'bool shared' parameter to ServerSocket.bind() ... (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Part 2: Smaller cleanups to align linux/android/mac versions more Created 5 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: dart/runtime/bin/eventhandler_macos.h
diff --git a/dart/runtime/bin/eventhandler_macos.h b/dart/runtime/bin/eventhandler_macos.h
index 4e32dc0656f159b44e50d34b16240d075a38b116..f8c31f788371e83112bb7eff53e5754d2ca89004 100644
--- a/dart/runtime/bin/eventhandler_macos.h
+++ b/dart/runtime/bin/eventhandler_macos.h
@@ -61,6 +61,7 @@ class SocketData {
// Returns true if the last token was taken.
bool TakeToken() {
+ ASSERT(tokens_ > 0);
tokens_--;
return tokens_ == 0;
}

Powered by Google App Engine
This is Rietveld 408576698