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

Unified Diff: lib/src/chain.dart

Issue 1940453003: pkg/stack_trace: use List.unmodifiable when possible (Closed) Base URL: https://github.com/dart-lang/stack_trace.git@master
Patch Set: Created 4 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 | lib/src/trace.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/chain.dart
diff --git a/lib/src/chain.dart b/lib/src/chain.dart
index a27e8a68d9288ab526fb27b86a5e142d5df28bae..fdb091702d57e068301132e1831ab80b34236c6a 100644
--- a/lib/src/chain.dart
+++ b/lib/src/chain.dart
@@ -3,7 +3,6 @@
// BSD-style license that can be found in the LICENSE file.
import 'dart:async';
-import 'dart:collection';
import 'dart:math' as math;
import 'frame.dart';
@@ -146,7 +145,7 @@ class Chain implements StackTrace {
/// Returns a new [Chain] comprised of [traces].
Chain(Iterable<Trace> traces)
- : traces = new UnmodifiableListView<Trace>(traces.toList());
+ : traces = new List<Trace>.unmodifiable(traces);
/// Returns a terser version of [this].
///
« no previous file with comments | « no previous file | lib/src/trace.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698