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

Unified Diff: sdk/lib/io/file_impl.dart

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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: sdk/lib/io/file_impl.dart
diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart
index e47029f3b25623aba079789ecb6d40e2a9d2d333..8d2f895373ec331c744c7aa0b0355cf099017a5b 100644
--- a/sdk/lib/io/file_impl.dart
+++ b/sdk/lib/io/file_impl.dart
@@ -59,7 +59,7 @@ class _FileInputStream extends _BaseDataInputStream implements InputStream {
}
void _fillBuffer() {
- Expect.equals(_position, _data.length);
+ assert(_position == _data.length);
if (_openedFile == null) return; // Called before the file is opened.
int size = min(_bufferLength, _fileLength - _filePosition);
if (size == 0) {

Powered by Google App Engine
This is Rietveld 408576698