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

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: 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 | « lib/compiler/implementation/source_file.dart ('k') | lib/compiler/implementation/tree/tree.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/tree/nodes.dart
diff --git a/lib/compiler/implementation/tree/nodes.dart b/lib/compiler/implementation/tree/nodes.dart
index 595ca0bf4f22e331f36392b4a3d76f9950004c86..2687ca8176785f70f5e23f0a258f481bb6e56c69 100644
--- a/lib/compiler/implementation/tree/nodes.dart
+++ b/lib/compiler/implementation/tree/nodes.dart
@@ -664,7 +664,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);
}
@@ -683,7 +683,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);
}
« no previous file with comments | « lib/compiler/implementation/source_file.dart ('k') | lib/compiler/implementation/tree/tree.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698