Chromium Code Reviews| Index: pkg/stack_trace/lib/src/trace.dart |
| diff --git a/pkg/stack_trace/lib/src/trace.dart b/pkg/stack_trace/lib/src/trace.dart |
| index 43a598c872857060bc82e7f6c713c58e8abd212c..bed1d5d89c799419d156dabe75835ffc34572a9a 100644 |
| --- a/pkg/stack_trace/lib/src/trace.dart |
| +++ b/pkg/stack_trace/lib/src/trace.dart |
| @@ -5,6 +5,7 @@ |
| library trace; |
| import 'dart:uri'; |
| +import 'dart:math'; |
|
nweiz
2013/04/12 19:47:33
Please import dart:math with a prefix. It has a lo
floitsch
2013/04/13 13:15:51
done in https://codereview.chromium.org/14111004
|
| import 'frame.dart'; |
| @@ -116,7 +117,7 @@ class Trace implements StackTrace { |
| if (frames.length == '') return ''; |
| // Figure out the longest path so we know how much to pad. |
| - var longest = frames.map((frame) => frame.location.length).max(); |
| + var longest = frames.map((frame) => frame.location.length).reduce(max); |
| // Print out the stack trace nicely formatted. |
| return frames.map((frame) { |