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

Unified Diff: lib/src/trace.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 | « lib/src/chain.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/trace.dart
diff --git a/lib/src/trace.dart b/lib/src/trace.dart
index 0a7f320b6410948d9a2d49f802b799886116521b..8537b6236109fc3f3db452b2c5f894e4bd851d15 100644
--- a/lib/src/trace.dart
+++ b/lib/src/trace.dart
@@ -2,7 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-import 'dart:collection';
import 'dart:math' as math;
import 'chain.dart';
@@ -205,7 +204,7 @@ class Trace implements StackTrace {
/// Returns a new [Trace] comprised of [frames].
Trace(Iterable<Frame> frames)
- : frames = new UnmodifiableListView<Frame>(frames.toList());
+ : frames = new List<Frame>.unmodifiable(frames);
/// Returns a VM-style [StackTrace] object.
///
« no previous file with comments | « lib/src/chain.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698