| Index: runtime/lib/lib_prefix.dart
|
| ===================================================================
|
| --- runtime/lib/lib_prefix.dart (revision 38794)
|
| +++ runtime/lib/lib_prefix.dart (working copy)
|
| @@ -9,6 +9,7 @@
|
| class _LibraryPrefix {
|
|
|
| bool _load() native "LibraryPrefix_load";
|
| + Error _loadError() native "LibraryPrefix_loadError";
|
|
|
| bool _invalidateDependentCode()
|
| native "LibraryPrefix_invalidateDependentCode";
|
| @@ -43,10 +44,14 @@
|
| // Called from the VM when all outstanding load requests have
|
| // finished.
|
| _completeDeferredLoads() {
|
| - var lenghth = _outstandingLoadRequests;
|
| _outstandingLoadRequests.forEach((prefix, completer) {
|
| - prefix._invalidateDependentCode();
|
| - completer.complete(true);
|
| + var error = prefix._loadError();
|
| + if (error != null) {
|
| + completer.completeError(error);
|
| + } else {
|
| + prefix._invalidateDependentCode();
|
| + completer.complete(true);
|
| + }
|
| });
|
| _outstandingLoadRequests.clear();
|
| }
|
|
|