Chromium Code Reviews| Index: pkg/stack_trace/lib/src/frame.dart |
| diff --git a/pkg/stack_trace/lib/src/frame.dart b/pkg/stack_trace/lib/src/frame.dart |
| index 6a88a268c93a6d09d8064c81090dd9713ace6b7b..74aafcda319f767b59f0ad4dec4552d965115a54 100644 |
| --- a/pkg/stack_trace/lib/src/frame.dart |
| +++ b/pkg/stack_trace/lib/src/frame.dart |
| @@ -69,7 +69,8 @@ class Frame { |
| /// This will usually be the string form of [uri], but a relative URI will be |
| /// used if possible. |
| String get library { |
| - if (uri.scheme != 'file') return uri.toString(); |
| + if (uri.scheme != Uri.base.scheme) return uri.toString(); |
| + if (path.style == path.Style.url) return path.relative(uri.toString()); |
|
Bob Nystrom
2013/11/20 20:21:22
Don't forget to update the pubspec for stack_trace
nweiz
2013/11/20 21:01:48
Done.
|
| return path.relative(path.fromUri(uri)); |
| } |