Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Unified Diff: runtime/lib/lib_prefix.dart

Issue 2045023003: Fix deferred load errors / bug #26482 (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/lib/lib_prefix.dart
diff --git a/runtime/lib/lib_prefix.dart b/runtime/lib/lib_prefix.dart
index 9d5af287e9e25e79f56e8ca99c2cb7e8318687c3..1ed9c45d891f105d1a9397b4bfe6ef09863d1a90 100644
--- a/runtime/lib/lib_prefix.dart
+++ b/runtime/lib/lib_prefix.dart
@@ -55,15 +55,13 @@ _completeDeferredLoads() {
var stillOutstandingLoadRequests = new List<List>();
for (int i = 0; i < _outstandingLoadRequests.length; i++) {
var prefix = _outstandingLoadRequests[i][0];
- if (prefix._load()) {
- var completer = _outstandingLoadRequests[i][1];
- var error = prefix._loadError();
- if (error != null) {
- completer.completeError(error);
- } else {
- prefix._invalidateDependentCode();
- completer.complete(true);
- }
+ var completer = _outstandingLoadRequests[i][1];
+ var error = prefix._loadError();
+ if (error != null) {
+ completer.completeError(error);
+ } else if (prefix._load()) {
+ prefix._invalidateDependentCode();
+ completer.complete(true);
} else {
stillOutstandingLoadRequests.add(_outstandingLoadRequests[i]);
}
« no previous file with comments | « runtime/bin/loader.cc ('k') | runtime/lib/object.cc » ('j') | runtime/lib/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698