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

Unified Diff: lib/coreimpl/future_implementation.dart

Issue 11233032: [core] cleanup === and !== (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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
===================================================================
--- lib/coreimpl/future_implementation.dart (revision 13856)
+++ lib/coreimpl/future_implementation.dart (working copy)
@@ -56,7 +56,7 @@
if (!isComplete) {
throw new FutureNotCompleteException();
}
- if (_exception !== null) {
+ if (_exception != null) {
throw new FutureUnhandledException(_exception, stackTrace);
}
return _value;
@@ -81,7 +81,7 @@
}
bool get hasValue {
- return isComplete && _exception === null;
+ return isComplete && _exception == null;
}
void then(void onSuccess(T value)) {
@@ -119,7 +119,7 @@
_isComplete = true;
try {
- if (_exception !== null) {
+ if (_exception != null) {
for (Function handler in _exceptionHandlers) {
// Explicitly check for true here so that if the handler returns null,
// we don't get an exception in checked mode.
@@ -157,7 +157,7 @@
}
void _setException(Object exception, Object stackTrace) {
- if (exception === null) {
+ if (exception == null) {
// null is not a legal value for the exception of a Future.
throw new ArgumentError(null);
}

Powered by Google App Engine
This is Rietveld 408576698