File tree Expand file tree Collapse file tree 4 files changed +19
-1
lines changed Expand file tree Collapse file tree 4 files changed +19
-1
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.6.8
2
+
3
+ * Add a note to the documentation of ` Chain.terse ` and ` Trace.terse ` .
4
+
1
5
## 1.6.7
2
6
3
7
* Fix a bug where ` new Frame.caller() ` returned the wrong depth of frame on
Original file line number Diff line number Diff line change @@ -150,6 +150,13 @@ class Chain implements StackTrace {
150
150
///
151
151
/// This calls [Trace.terse] on every trace in [traces] , and discards any
152
152
/// trace that contain only internal frames.
153
+ ///
154
+ /// This won't do anything with a raw JavaScript trace, since there's no way
155
+ /// to determine which frames come from which Dart libraries. However, the
156
+ /// [`source_map_stack_trace`][source_map_stack_trace] package can be used to
157
+ /// convert JavaScript traces into Dart-style traces.
158
+ ///
159
+ /// [source_map_stack_trace] : https://pub.dartlang.org/packages/source_map_stack_trace
153
160
Chain get terse => foldFrames ((_) => false , terse: true );
154
161
155
162
/// Returns a new [Chain] based on [this] where multiple stack frames matching
Original file line number Diff line number Diff line change @@ -225,6 +225,13 @@ class Trace implements StackTrace {
225
225
/// removed. If the outermost frame of the stack trace is a core library
226
226
/// frame, it's removed entirely.
227
227
///
228
+ /// This won't do anything with a raw JavaScript trace, since there's no way
229
+ /// to determine which frames come from which Dart libraries. However, the
230
+ /// [`source_map_stack_trace`][source_map_stack_trace] package can be used to
231
+ /// convert JavaScript traces into Dart-style traces.
232
+ ///
233
+ /// [source_map_stack_trace] : https://pub.dartlang.org/packages/source_map_stack_trace
234
+ ///
228
235
/// For custom folding, see [foldFrames] .
229
236
Trace get terse => foldFrames ((_) => false , terse: true );
230
237
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ name: stack_trace
7
7
#
8
8
# When the major version is upgraded, you *must* update that version constraint
9
9
# in pub to stay in sync with this.
10
- version : 1.6.8-dev
10
+ version : 1.6.8
11
11
author :
" Dart Team <[email protected] >"
12
12
homepage : https://github.com/dart-lang/stack_trace
13
13
description : >
You can’t perform that action at this time.
0 commit comments