New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dart2js should format V8 stack traces like the VM #12575
Comments
Unfortunately, Error.prepareStackTrace is not supported anymore :-( The V8 team has removed a lot of Error properties that dart2js used to take advantage of. I do think we should try to format stack traces, but I really don't think the VM's format is that readable. |
Worth noting that issue #13095 is now tracking potential improvements to the VM's stack trace format. |
I'm looking into removing the string representation of the exception. |
Added Started label. |
Added this to the M7 milestone. |
Removed this from the M7 milestone. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
V8 provides an API for controlling the formatting of stack traces (see https://code.google.com/p/v8/wiki/JavaScriptStackTraceApi). dart2js should take advantage of this capability and make stack traces look like they do on the Dart VM.
This is especially important for V8 because the stack traces are otherwise very difficult to parse, since they include the string representation of the Exception itself. This means that the trace can include arbitrary text before the actual trace begins, making it impossible to parse accurately in some cases.
The text was updated successfully, but these errors were encountered: