Removing unnecessary warning when parsing Json. BUG= R=sigmund@google.com Review URL: https://codereview.chromium.org//781643002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/source_maps@42098 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/pkgs/source_maps/CHANGELOG.md b/pkgs/source_maps/CHANGELOG.md index a70bc44..531a6d0 100644 --- a/pkgs/source_maps/CHANGELOG.md +++ b/pkgs/source_maps/CHANGELOG.md
@@ -1,3 +1,9 @@ +## 0.10.0+1 + +* Remove an unnecessary warning printed when the "file" field is missing from a + Json formatted source map. This field is optional and its absence is not + unusual. + ## 0.10.0 * Remove the `Span`, `Location` and `SourceFile` classes. Use the
diff --git a/pkgs/source_maps/lib/parser.dart b/pkgs/source_maps/lib/parser.dart index d67a65e..369c27d 100644 --- a/pkgs/source_maps/lib/parser.dart +++ b/pkgs/source_maps/lib/parser.dart
@@ -31,10 +31,6 @@ 'Only version 3 is supported.'); } - if (!map.containsKey('file')) { - print('warning: missing "file" entry in source map'); - } - if (map.containsKey('sections')) { if (map.containsKey('mappings') || map.containsKey('sources') || map.containsKey('names')) {
diff --git a/pkgs/source_maps/pubspec.yaml b/pkgs/source_maps/pubspec.yaml index 4af996e..2751034 100644 --- a/pkgs/source_maps/pubspec.yaml +++ b/pkgs/source_maps/pubspec.yaml
@@ -1,5 +1,5 @@ name: source_maps -version: 0.10.0 +version: 0.10.0+1 author: Dart Team <misc@dartlang.org> description: Library to programmatically manipulate source map files. homepage: http://www.dartlang.org