| commit | 23fa7bfaa6b9789f3cb2dbe2174966e8e572e1ee | [log] [tgz] |
|---|---|---|
| author | nweiz@google.com <nweiz@google.com> | Fri Jun 20 02:12:33 2014 +0000 |
| committer | nweiz@google.com <nweiz@google.com> | Fri Jun 20 02:12:33 2014 +0000 |
| tree | 5c8b5304a815b0891b429165e7612f498a7670ef | |
| parent | 36b7da221d34001c33f8ba4f7f1ba2f39bf859fb [diff] |
Fix a bug in FixedSpan.getLocationMessage. R=jmesserly@google.com Review URL: https://codereview.chromium.org//346993002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/source_maps@37531 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/pkgs/source_maps/CHANGELOG.md b/pkgs/source_maps/CHANGELOG.md index 55d7896..f40a16d 100644 --- a/pkgs/source_maps/CHANGELOG.md +++ b/pkgs/source_maps/CHANGELOG.md
@@ -1,3 +1,7 @@ +## 0.9.2+2 + +* Fix a bug in `FixedSpan.getLocationMessage`. + ## 0.9.2+1 * Minor readability improvements to `FixedSpan.getLocationMessage` and
diff --git a/pkgs/source_maps/lib/span.dart b/pkgs/source_maps/lib/span.dart index 91cfcd3..600506e 100644 --- a/pkgs/source_maps/lib/span.dart +++ b/pkgs/source_maps/lib/span.dart
@@ -64,7 +64,8 @@ String getLocationMessage(String message, {bool useColors: false, String color}) { - var source = url == null ? '' : ' of ${p.prettyUri(url)}'; + var source = start.sourceUrl == null ? '' : + ' of ${p.prettyUri(start.sourceUrl)}'; return 'line ${start.line + 1}, column ${start.column + 1}$source: ' + message; }
diff --git a/pkgs/source_maps/pubspec.yaml b/pkgs/source_maps/pubspec.yaml index 7fae470..80c7e7f 100644 --- a/pkgs/source_maps/pubspec.yaml +++ b/pkgs/source_maps/pubspec.yaml
@@ -1,5 +1,5 @@ name: source_maps -version: 0.9.2+1 +version: 0.9.2+2 author: Dart Team <misc@dartlang.org> description: Library to programmatically manipulate source map files. homepage: http://www.dartlang.org