| commit | bce1ecb4b4c12d0f3d5f63087de1ec7556a9f21b | [log] [tgz] |
|---|---|---|
| author | nweiz@google.com <nweiz@google.com> | Tue Jan 07 00:39:31 2014 +0000 |
| committer | nweiz@google.com <nweiz@google.com> | Tue Jan 07 00:39:31 2014 +0000 |
| tree | 9729deed6c4d03236878446f282682eb3eb644d3 | |
| parent | a325f8588b05c5c4989f4d0c1fe287b704cd1f8a [diff] |
Work around issue 15920 in pkg/stack_trace. R=rnystrom@google.com Review URL: https://codereview.chromium.org//112953004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/stack_trace@31526 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/pkgs/stack_trace/lib/src/trace.dart b/pkgs/stack_trace/lib/src/trace.dart index 88b9275..45cb42c 100644 --- a/pkgs/stack_trace/lib/src/trace.dart +++ b/pkgs/stack_trace/lib/src/trace.dart
@@ -126,7 +126,10 @@ /// Parses a string representation of a Dart VM stack trace. Trace.parseVM(String trace) - : this(trace.trim().split("\n").map((line) => new Frame.parseVM(line))); + : this(trace.trim().split("\n"). + // TODO(nweiz): remove this when issue 15920 is fixed. + where((line) => line.isNotEmpty). + map((line) => new Frame.parseVM(line))); /// Parses a string representation of a Chrome/V8 stack trace. Trace.parseV8(String trace)
diff --git a/pkgs/stack_trace/pubspec.yaml b/pkgs/stack_trace/pubspec.yaml index ac41d93..5a023c0 100644 --- a/pkgs/stack_trace/pubspec.yaml +++ b/pkgs/stack_trace/pubspec.yaml
@@ -1,5 +1,5 @@ name: stack_trace -version: 0.9.1 +version: 0.9.1-dev+1 author: "Dart Team <misc@dartlang.org>" homepage: http://www.dartlang.org description: >