400c6c19e9
Currently front-end embeds absolute paths to build time locations into Kernel binaries. Reporting those to user make stack trace unreadable and also breaks stack trace filters that attempt to filter out implementation frames from dart:async: #1 _RootZone.runUnary (file:///Users/vegorov/src/dart/sdk/sdk/lib/async/zone.dart:1381:54) same frame in legacy mode looks like this: #1 _RootZone.runUnary (dart:async/zone.dart:1381) This CL changes stack frame formatting so that even in Dart 2 mode result looks closer to legacy mode result. This is a workaround for https://github.com/dart-lang/sdk/issues/32087 Change-Id: Ic69cb039ff7d40d0e8e5340a9c1dc067427479ea Reviewed-on: https://dart-review.googlesource.com/40522 Commit-Queue: Vyacheslav Egorov <vegorov@google.com> Reviewed-by: Jens Johansen <jensj@google.com>