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. |
/// |