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

Unified Diff: sdk/lib/io/http_utils.dart

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 1 month 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 | « sdk/lib/io/http_impl.dart ('k') | sdk/lib/io/list_stream_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http_utils.dart
diff --git a/sdk/lib/io/http_utils.dart b/sdk/lib/io/http_utils.dart
index 668ba66bb6e3b24ff3635f95185d36de10746952..d1161f8bf1ed5c8f69884b1624bb8cb40f4ed978 100644
--- a/sdk/lib/io/http_utils.dart
+++ b/sdk/lib/io/http_utils.dart
@@ -262,7 +262,7 @@ class _HttpUtils {
bool isDelimiter(String s) {
int char = s.charCodeAt(0);
- if (char === 0x09) return true;
+ if (char == 0x09) return true;
if (char >= 0x20 && char <= 0x2F) return true;
if (char >= 0x3B && char <= 0x40) return true;
if (char >= 0x5B && char <= 0x60) return true;
@@ -315,21 +315,21 @@ class _HttpUtils {
for (var token in tokens) {
if (token.length < 1) continue;
- if (timeStr === null && token.length >= 5 && isDigit(token[0]) &&
+ if (timeStr == null && token.length >= 5 && isDigit(token[0]) &&
(token[1] == ":" || (isDigit(token[1]) && token[2] == ":"))) {
timeStr = token;
- } else if (dayOfMonthStr === null && isDigit(token[0])) {
+ } else if (dayOfMonthStr == null && isDigit(token[0])) {
dayOfMonthStr = token;
- } else if (monthStr === null && getMonth(token) >= 0) {
+ } else if (monthStr == null && getMonth(token) >= 0) {
monthStr = token;
- } else if (yearStr === null && token.length >= 2 &&
+ } else if (yearStr == null && token.length >= 2 &&
isDigit(token[0]) && isDigit(token[1])) {
yearStr = token;
}
}
- if (timeStr === null || dayOfMonthStr === null ||
- monthStr === null || yearStr === null) {
+ if (timeStr == null || dayOfMonthStr == null ||
+ monthStr == null || yearStr == null) {
error();
}
@@ -344,7 +344,7 @@ class _HttpUtils {
int month = getMonth(monthStr) + 1;
var timeList = timeStr.split(":");
- if (timeList.length !== 3) error();
+ if (timeList.length != 3) error();
int hour = toInt(timeList[0]);
int minute = toInt(timeList[1]);
int second = toInt(timeList[2]);
« no previous file with comments | « sdk/lib/io/http_impl.dart ('k') | sdk/lib/io/list_stream_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698