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; |
} |