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

Unified Diff: runtime/bin/http_parser.dart

Issue 10829459: Deprecate Math object in corelib in favor of dart:math library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 4 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 | « runtime/bin/http_impl.dart ('k') | runtime/bin/http_utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/http_parser.dart
diff --git a/runtime/bin/http_parser.dart b/runtime/bin/http_parser.dart
index 95bdb1c9610dcdf6ef1cd5e965c9843c383fcb66..b5d1fe68b19bf4a4cb9867e4900eb8ed03a2726f 100644
--- a/runtime/bin/http_parser.dart
+++ b/runtime/bin/http_parser.dart
@@ -313,7 +313,7 @@ class _HttpParser {
case _State.RESPONSE_LINE_ENDING:
_expect(byte, _CharCode.LF);
_messageType == _MessageType.RESPONSE;
- int statusCode = Math.parseInt(_method_or_status_code.toString());
+ int statusCode = parseInt(_method_or_status_code.toString());
if (statusCode < 100 || statusCode > 599) {
throw new HttpParserException("Invalid response status code");
} else {
@@ -383,7 +383,7 @@ class _HttpParser {
if (headerField == "content-length" && !_chunked) {
// Ignore the Content-Length header if Transfer-Encoding
// is chunked (RFC 2616 section 4.4)
- _contentLength = Math.parseInt(headerValue);
+ _contentLength = parseInt(headerValue);
} else if (headerField == "connection") {
List<String> tokens = _tokenizeFieldValue(headerValue);
for (int i = 0; i < tokens.length; i++) {
« no previous file with comments | « runtime/bin/http_impl.dart ('k') | runtime/bin/http_utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698