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(); |
} |