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

Unified Diff: lib/src/trace.dart

Issue 1080083004: Support more types of JavaScriptCore stack frames. (Closed) Base URL: git@github.com:dart-lang/stack_trace@master
Patch Set: Created 5 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 | « CHANGELOG.md ('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 bf26c5175b02719a2953da7b4f93be893c4663bf..2fce0c7c3d51aa64dc5f1a1eef025d4586b642fd 100644
--- a/lib/src/trace.dart
+++ b/lib/src/trace.dart
@@ -150,7 +150,9 @@ class Trace implements StackTrace {
/// Parses a string representation of a JavaScriptCore stack trace.
Trace.parseJSCore(String trace)
- : this(trace.split("\n").map((line) => new Frame.parseV8(line)));
+ : this(trace.split("\n")
+ .where((line) => line != "\tat ")
+ .map((line) => new Frame.parseV8(line)));
/// Parses a string representation of an Internet Explorer stack trace.
///
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698