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

Unified Diff: lib/coreimpl/future_implementation.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: lib/coreimpl/future_implementation.dart
diff --git a/lib/coreimpl/future_implementation.dart b/lib/coreimpl/future_implementation.dart
index 4146397680a4a4e44fbd6e06bd87bdf7a032ba3c..9f0cafff9e17d2e7a21b9ba0f101f081de5a1223 100644
--- a/lib/coreimpl/future_implementation.dart
+++ b/lib/coreimpl/future_implementation.dart
@@ -159,7 +159,7 @@ class FutureImpl<T> implements Future<T> {
void _setException(Object exception, Object stackTrace) {
if (exception === null) {
// null is not a legal value for the exception of a Future.
- throw new IllegalArgumentException(null);
+ throw new ArgumentError(null);
}
if (_isComplete) {
throw new FutureAlreadyCompleteException();

Powered by Google App Engine
This is Rietveld 408576698