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

Unified Diff: pkg/stack_trace/lib/src/trace.dart

Issue 14111004: Import math library with a prefix. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | « no previous file | utils/tests/pub/command_line_config.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bed1d5d89c799419d156dabe75835ffc34572a9a..33b2dd42262fad813a1e3811f3b0b147e5a91311 100644
--- a/pkg/stack_trace/lib/src/trace.dart
+++ b/pkg/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 @@ 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).reduce(max);
+ var longest = frames.map((frame) => frame.location.length).reduce(math.max);
// Print out the stack trace nicely formatted.
return frames.map((frame) {
« no previous file with comments | « no previous file | utils/tests/pub/command_line_config.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698