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

Unified Diff: runtime/lib/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
Index: runtime/lib/object.cc
diff --git a/runtime/lib/object.cc b/runtime/lib/object.cc
index b450038b0f5a832117a6b8c458eee5da46f28e3d..c6e20bbaa1aef76f85a767d8364199ca269be47c 100644
--- a/runtime/lib/object.cc
+++ b/runtime/lib/object.cc
@@ -327,6 +327,13 @@ DEFINE_NATIVE_ENTRY(LibraryPrefix_isLoaded, 1) {
}
+DEFINE_NATIVE_ENTRY(LibraryPrefix_hasError, 1) {
+ const LibraryPrefix& prefix =
+ LibraryPrefix::CheckedHandle(zone, arguments->NativeArgAt(0));
+ return Bool::Get(prefix.has_error()).raw();
+}
+
+
DEFINE_NATIVE_ENTRY(Internal_inquireIs64Bit, 0) {
#if defined(ARCH_IS_64_BIT)
return Bool::True().raw();

Powered by Google App Engine
This is Rietveld 408576698