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

Unified Diff: dart/lib/compiler/implementation/dart2js.dart

Issue 10386044: Fix broken assertion. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/dart2js.dart
diff --git a/dart/lib/compiler/implementation/dart2js.dart b/dart/lib/compiler/implementation/dart2js.dart
index 0e0f0315fae71073421c17d28721e764a6f4fb80..b1420432df999e742aed59535edea2a16dcff6ee 100644
--- a/dart/lib/compiler/implementation/dart2js.dart
+++ b/dart/lib/compiler/implementation/dart2js.dart
@@ -35,9 +35,9 @@ void parseCommandLine(List<OptionHandler> handlers, List<String> argv) {
patterns.add(handler.pattern);
}
var pattern = new RegExp('^(${Strings.join(patterns, ")|(")})\$');
- assert(pattern.groupCount() == handlers.length);
OUTER: for (String argument in argv) {
Match match = pattern.firstMatch(argument);
+ assert(match.groupCount() == handlers.length);
for (int i = 0; i < handlers.length; i++) {
if (match[i + 1] !== null) {
handlers[i].handle(argument);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698