Chromium Code Reviews| 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 88b9275182b64262268c3a2c6ba892ad99754e66..45cb42c757a2e295631b8ce5d7d91c1c49c851f0 100644 |
| --- a/pkg/stack_trace/lib/src/trace.dart |
| +++ b/pkg/stack_trace/lib/src/trace.dart |
| @@ -126,7 +126,10 @@ class Trace implements StackTrace { |
| /// 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). |
|
Bob Nystrom
2014/01/06 21:42:49
Should you trim the line first in case it contains
nweiz
2014/01/06 23:59:27
I'm pretty sure that in practice the blank lines p
|
| + map((line) => new Frame.parseVM(line))); |
| /// Parses a string representation of a Chrome/V8 stack trace. |
| Trace.parseV8(String trace) |