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

Unified Diff: runtime/vm/object.cc

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
« runtime/lib/lib_prefix.dart ('K') | « runtime/vm/object.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 13b84c64387f0b86d970b534c259ad4b7ffc2e1a..5d238be72afac6bd1cf0cf0af9938bea1b79417d 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -10901,6 +10901,13 @@ void LibraryPrefix::set_is_loaded() const {
}
+bool LibraryPrefix::has_error() const {
+ ASSERT(num_imports() == 1);
+ const Library& deferred_lib = Library::Handle(GetLibrary(0));
+ return deferred_lib.LoadFailed();
hausner 2016/06/07 21:47:05 I'm not sure LoadFailed() is sufficient. You need
+}
+
+
bool LibraryPrefix::LoadLibrary() const {
// Non-deferred prefixes are loaded.
ASSERT(is_deferred_load() || is_loaded());
« runtime/lib/lib_prefix.dart ('K') | « runtime/vm/object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698