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

Unified Diff: runtime/lib/integers_patch.dart

Issue 578213002: Don't use identical for null. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« 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: runtime/lib/integers_patch.dart
diff --git a/runtime/lib/integers_patch.dart b/runtime/lib/integers_patch.dart
index c49dbf3c107700f6c3a62b05ccd6e3a842d71d34..f6bc484764435d00c0e5ffd7d4fa7ea2cc07a5b2 100644
--- a/runtime/lib/integers_patch.dart
+++ b/runtime/lib/integers_patch.dart
@@ -62,7 +62,7 @@ patch class int {
/* patch */ static int parse(String source,
{ int radix,
int onError(String str) }) {
- if (identical(source, null)) throw new ArgumentError(source);
+ if (source == null) throw new ArgumentError(source);
if (radix == null) {
int result;
if (source.isNotEmpty) result = _parse(source);
« 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