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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/scanner/utf8_bytes_scanner.dart

Issue 87813002: Fix crashes in scanner. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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/sdk/lib/_internal/compiler/implementation/scanner/utf8_bytes_scanner.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/scanner/utf8_bytes_scanner.dart b/dart/sdk/lib/_internal/compiler/implementation/scanner/utf8_bytes_scanner.dart
index 523495cea423a8e3d5a3a510be2e88f0a2c97816..62722ea6f7d0357831bf497801eca8244806f53f 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/scanner/utf8_bytes_scanner.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/scanner/utf8_bytes_scanner.dart
@@ -190,4 +190,6 @@ class Utf8BytesScanner extends ArrayBasedScanner {
info, bytes, start, byteOffset + extraOffset, asciiOnly, tokenStart);
tail = tail.next;
}
+
+ bool atEndOfFile() => byteOffset >= bytes.length - 1;
}

Powered by Google App Engine
This is Rietveld 408576698