dart-sdk/pkg/dart2js_tools
Sigmund Cherem 4a42831e85 Use source-maps in test runner to expand JavaScript stack traces.
This works on all browsers, in d8, and supports both dartdevk and
dart2js. In the case of dart2js, this also expands minified names and
inlined data.

The result is presented to users as a separate section, so the original
JS stack trace is printed as is, and a second deobfuscated stack trace
is printed afterwards.

Change-Id: I10af5e0241a8c87ad8db48234ce52cfb51a27411
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/132966
Commit-Queue: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Vijay Menon <vsm@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2020-01-24 20:00:13 +00:00
..
bin Use source-maps in test runner to expand JavaScript stack traces. 2020-01-24 20:00:13 +00:00
lib Use source-maps in test runner to expand JavaScript stack traces. 2020-01-24 20:00:13 +00:00
pubspec.yaml Use source-maps in test runner to expand JavaScript stack traces. 2020-01-24 20:00:13 +00:00
README.md Move deobfuscation tools to the SDK repo 2018-08-09 22:55:04 +00:00

dart2js_tools

This package collects tools used with dart2js.

For now, this contains scripts useful to work with obfuscated stack traces in production and reading data from the extensions added to source-maps by dart2js (like minified names and inlined stack frames).

In the future we plan to merge here tools in the dart2js_info package as well.