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

Unified Diff: utils/pub/pub.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 | « utils/css/css.dart ('k') | utils/pub/version.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/pub.dart
diff --git a/utils/pub/pub.dart b/utils/pub/pub.dart
index 7ab4b53a5397f9d3c81454af9f8b5794ee459a4b..284c8ccafb245d3a6de82796d4fe7275c3f8fe0a 100644
--- a/utils/pub/pub.dart
+++ b/utils/pub/pub.dart
@@ -9,6 +9,7 @@
#import('../../pkg/args/args.dart');
#import('dart:io');
+#import('dart:math');
#import('io.dart');
#import('command_help.dart');
#import('command_install.dart');
@@ -121,7 +122,7 @@ void printUsage([String description = 'Pub is a package manager for Dart.']) {
int length = 0;
var names = <String>[];
for (var command in pubCommands.getKeys()) {
- length = Math.max(length, command.length);
+ length = max(length, command.length);
names.add(command);
}
« no previous file with comments | « utils/css/css.dart ('k') | utils/pub/version.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698