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

Unified Diff: lib/compiler/implementation/tree/nodes.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: 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
Index: lib/compiler/implementation/tree/nodes.dart
diff --git a/lib/compiler/implementation/tree/nodes.dart b/lib/compiler/implementation/tree/nodes.dart
index f73279b0b854b137fd36c40e95f613240f1ec8bb..6cca06cadd6367329d11f574b723a09edb018433 100644
--- a/lib/compiler/implementation/tree/nodes.dart
+++ b/lib/compiler/implementation/tree/nodes.dart
@@ -662,7 +662,7 @@ class LiteralInt extends Literal<int> {
try {
Token valueToken = token;
if (valueToken.kind === PLUS_TOKEN) valueToken = valueToken.next;
- return Math.parseInt(valueToken.value.slowToString());
+ return parseInt(valueToken.value.slowToString());
} catch (FormatException ex) {
(this.handler)(token, ex);
}
@@ -681,7 +681,7 @@ class LiteralDouble extends Literal<double> {
try {
Token valueToken = token;
if (valueToken.kind === PLUS_TOKEN) valueToken = valueToken.next;
- return Math.parseDouble(valueToken.value.slowToString());
+ return parseDouble(valueToken.value.slowToString());
} catch (FormatException ex) {
(this.handler)(token, ex);
}

Powered by Google App Engine
This is Rietveld 408576698