| Index: sdk/lib/_internal/pub/lib/src/pubspec.dart
|
| diff --git a/sdk/lib/_internal/pub/lib/src/pubspec.dart b/sdk/lib/_internal/pub/lib/src/pubspec.dart
|
| index 8496063abfec2af633fb33fe4f758c7b4227a144..883a77c961c8c7344b6a119b251b9364a09c53d4 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/pubspec.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/pubspec.dart
|
| @@ -273,11 +273,9 @@ class Pubspec {
|
| /// [Version.none].
|
| factory Pubspec.parse(String contents, SourceRegistry sources,
|
| {String expectedName, Uri location}) {
|
| - if (contents.trim() == '') return new Pubspec.empty();
|
| -
|
| var pubspecNode = loadYamlNode(contents, sourceUrl: location);
|
| if (pubspecNode is YamlScalar && pubspecNode.value == null) {
|
| - pubspecNode = new YamlMap();
|
| + pubspecNode = new YamlMap(sourceUrl: location);
|
| } else if (pubspecNode is! YamlMap) {
|
| throw new PubspecException(
|
| 'The pubspec must be a YAML mapping.', pubspecNode.span);
|
|
|