Trace.parseV8 constructor
Parses a string representation of a Chrome/V8 stack trace.
Implementation
Trace.parseV8(String trace)
: this(
trace
.split("\n")
.skip(1)
// It's possible that an Exception's description contains a line that
// looks like a V8 trace line, which will screw this up.
// Unfortunately, that's impossible to detect.
.skipWhile((line) => !line.startsWith(_v8TraceLine))
.map((line) => new Frame.parseV8(line)),
original: trace);