| commit | 10ae21e43ca7e48dd95ee4d6707131dbd3dfb903 | [log] [tgz] |
|---|---|---|
| author | floitsch@google.com <floitsch@google.com> | Sat Apr 13 13:17:13 2013 +0000 |
| committer | floitsch@google.com <floitsch@google.com> | Sat Apr 13 13:17:13 2013 +0000 |
| tree | 7003a6e75831ebd8f2d2227c0c2a9155b5e6272a | |
| parent | 39955275a4769107c436db299b21aedef2a1462c [diff] |
Import math library with a prefix. Review URL: https://codereview.chromium.org//14111004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/stack_trace@21406 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/pkgs/stack_trace/lib/src/trace.dart b/pkgs/stack_trace/lib/src/trace.dart index bed1d5d..33b2dd4 100644 --- a/pkgs/stack_trace/lib/src/trace.dart +++ b/pkgs/stack_trace/lib/src/trace.dart
@@ -5,7 +5,7 @@ library trace; import 'dart:uri'; -import 'dart:math'; +import 'dart:math' as math; import 'frame.dart'; @@ -117,7 +117,7 @@ if (frames.length == '') return ''; // Figure out the longest path so we know how much to pad. - var longest = frames.map((frame) => frame.location.length).reduce(max); + var longest = frames.map((frame) => frame.location.length).reduce(math.max); // Print out the stack trace nicely formatted. return frames.map((frame) {