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

Unified Diff: lib/src/trace.dart

Issue 967633002: Remove the line number and file information from *all* folded frames. (Closed) Base URL: git@github.com:dart-lang/stack_trace@master
Patch Set: Fix a README thing. Created 5 years, 10 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 | « README.md ('k') | test/chain_test.dart » ('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 e0cb21be8f79c866d7553865f04771f0bc10f6b8..954cf453e9020a87073d513bf134010286d50a7e 100644
--- a/lib/src/trace.dart
+++ b/lib/src/trace.dart
@@ -252,7 +252,7 @@ class Trace implements StackTrace {
if (terse) {
newFrames = newFrames.map((frame) {
- if (!frame.isCore) return frame;
+ if (!predicate(frame)) return frame;
var library = frame.library.replaceAll(_terseRegExp, '');
return new Frame(Uri.parse(library), null, null, frame.member);
}).toList();
« no previous file with comments | « README.md ('k') | test/chain_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698