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

Unified Diff: samples/third_party/dromaeo/common/JSON.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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: samples/third_party/dromaeo/common/JSON.dart
diff --git a/samples/third_party/dromaeo/common/JSON.dart b/samples/third_party/dromaeo/common/JSON.dart
index ed84d0ef2c543c2dd66faad34635fa76738bf30e..dc9fd68ce7daf40c5c3f9ded787ebbba26e37114 100644
--- a/samples/third_party/dromaeo/common/JSON.dart
+++ b/samples/third_party/dromaeo/common/JSON.dart
@@ -199,7 +199,7 @@ class JsonTokenizer {
_s.substring(_pos, _len);
}
final codeString = _s.substring(_pos + 1, _pos + 5);
- c = Math.parseInt('0x' + codeString);
+ c = int.parse('0x' + codeString);
if (c >= 128) {
// TODO(jmessery): the VM doesn't support 2-byte strings yet
// see runtime/lib/string.cc:49
@@ -254,7 +254,7 @@ class JsonTokenizer {
final String body = _s.substring(startPos, _pos);
return new JsonToken.number(
- isInteger ? Math.parseInt(body) : Math.parseDouble(body));
+ isInteger ? int.parse(body) : double.parse(body));
case cur == LBRACE:
_pos++;
« no previous file with comments | « samples/third_party/dromaeo/common/BenchUtil.dart ('k') | samples/third_party/dromaeo/tests/RunnerSuite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698