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

Unified Diff: utils/pub/version_solver.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/pub/version.dart ('k') | utils/pub/yaml/yaml.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/version_solver.dart
diff --git a/utils/pub/version_solver.dart b/utils/pub/version_solver.dart
index cd817cfbdbca5195494d24fcf25c31c87758570a..2aadbfa8d7c8bab613e8cee24ada93cd679a284d 100644
--- a/utils/pub/version_solver.dart
+++ b/utils/pub/version_solver.dart
@@ -38,6 +38,7 @@
#library('version_solver');
#import('dart:json');
+#import('dart:math');
#import('lock_file.dart');
#import('package.dart');
#import('pubspec.dart');
@@ -108,7 +109,7 @@ class VersionSolver {
// TODO(rnystrom): These numbers here are magic and arbitrary. Tune
// when we have a better picture of real-world package topologies.
_numIterations++;
- if (_numIterations > Math.max(50, _packages.length * 5)) {
+ if (_numIterations > max(50, _packages.length * 5)) {
throw new CouldNotSolveException();
}
« no previous file with comments | « utils/pub/version.dart ('k') | utils/pub/yaml/yaml.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698