Chain.capture()that makes it avoid creating an error zone.
Chain.forTrace() now returns a full stack chain for all
Chain.capture(), even those that haven't been processed by
Chain.forTrace() now uses the Dart VM's stack chain information when called synchronously within
Chain.capture(). This matches the existing behavior outside
Chain.forTrace() now trims the VM‘s stack chains for the innermost stack trace within
Chain.capture() (unless it’s called synchronously, as above). This avoids duplicated frames and makes the format of the innermost traces consistent with the other traces in the chain.
Use official generic function syntax.
Updated minimum SDK to 1.23.0.
Trace.originalfield to provide access to the original
StackTraces from which the
Tracewas created, and a matching constructor parameter to
Chain.capture()in the parent zone.
Chain.foldFrames() now remove the outermost folded frame. This matches the behavior of
.terse with core frames.
Fix bug parsing a friendly frame with spaces in the member name.
Fix bug parsing a friendly frame where the location is a data url.
Chain.parse(), treat the VM's new causal asynchronous stack traces as chains. Outside of a
new Chain.current()will return a stack chain constructed from the asynchronous stack traces.
Chain.disable() function that disables stack-chain tracking.
Fix a bug where
Chain.capture(..., when: false) would throw if an error was emitted without a stack trace.
new Frame.caller()returned the wrong depth of frame on Dartium.
new Chain.current()now skip an extra frame when run in a JS context. This makes their return values match the VM context.
Chain.capture()generic. Its signature is now
T Chain.capture<T>(T callback(), ...).
StackTrace.currentin Dart SDK 1.14 to get the current stack trace.
when parameter to
Chain.capture(). This allows capturing to be easily enabled and disabled based on whether the application is running in debug/development mode or not.
ChainHandler typedef. This didn't provide any value over directly annotating the function argument, and it made the documentation less clear.
Chain.tersewhen one of the chain's traces has no frames.
new Chain.parse() now parses all the stack trace formats supported by
new Trace.parse(). Formats other than that emitted by
Chain.toString() will produce single-element chains.
new Trace.parse() now parses the output of
Chain.toString(). It produces the same result as
data:URIs in stack traces.
new Trace.parse() and related constructors will no longer throw an exception if they encounter an unparseable stack frame. Instead, they will generate an
UnparsedFrame, which exposes no metadata but preserves the frame's original text.
Properly parse native-code V8 frames.
null stack trace is passed to a completer or stream controller in nested
Chain.capture() blocks, substitute the inner block‘s chain rather than the outer block’s.
Add support for empty chains and chains of empty traces to
Don't crash when parsing stack traces from Dart VM stack overflows.
Trace.terseon empty stack traces.
Don't print the first folded frame of terse stack traces. This frame is always just an internal isolate message handler anyway. This improves the readability of stack traces, especially in stack chains.
Remove the line numbers and specific files in all terse folded frames, not just those from core libraries.
Make padding consistent across all stack traces for
Further improve stack chains when using the VM's async/await implementation.
Chain.foldFrames(). This allows them to inherit the behavior of
Chain.tersewithout having to duplicate the logic.
Support VM frames without line or column numbers, which async/await programs occasionally generate.
<<anonymous closure>_async_body> in VM frames' members with the terser
Unify the parsing of Safari and Firefox stack traces. This fixes an error in Firefox trace parsing.
Zone.errorCallbackto attach stack chains to all errors without the need for
Chain.track, which is now deprecated.
Update the dependency on path.
Improve the formatting of library URIs in stack traces.
onErrorhandler, that error is handled by the parent zone. This matches the behavior of
Chain.foldFrames method that parallels
Record anonymous method frames in IE10 as “”.