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

Unified Diff: tests/compiler/dart2js/mock_compiler.dart

Issue 10989013: Change IllegalArgumentException to ArgumentError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated co19 test expectations. Created 8 years, 3 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: tests/compiler/dart2js/mock_compiler.dart
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
index 14a90edc6aae7c78b0a3bb03e7ea1328a046aabf..b734474e94a9f3a7e1004a3ff402e7b78e3ad077 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -180,7 +180,7 @@ class MockCompiler extends Compiler {
Script readScript(Uri uri, [ScriptTag node]) {
SourceFile sourceFile = sourceFiles[uri.toString()];
- if (sourceFile === null) throw new IllegalArgumentException(uri);
+ if (sourceFile === null) throw new ArgumentError(uri);
return new Script(uri, sourceFile);
}
}

Powered by Google App Engine
This is Rietveld 408576698