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

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: 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: utils/pub/version_solver.dart
diff --git a/utils/pub/version_solver.dart b/utils/pub/version_solver.dart
index 1cbfd299e2b583dff6e3926f8a86e000e0d94bdb..8fb6397998e9d6595f1faf6e94df568b7ae6460c 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');
@@ -95,7 +96,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();
}

Powered by Google App Engine
This is Rietveld 408576698