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

Unified Diff: runtime/vm/isolate.cc

Issue 290713004: First step towards asynchronous loading of sources (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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/vm/isolate.cc
===================================================================
--- runtime/vm/isolate.cc (revision 36309)
+++ runtime/vm/isolate.cc (working copy)
@@ -189,7 +189,12 @@
Function::Handle(isolate_, lib.LookupLocalFunction(callback_name));
if (func.IsNull()) {
lib = isolate_->object_store()->root_library();
- func = lib.LookupLocalFunction(callback_name);
+ // Note: bootstrap code in builtin library may attempt to resolve a
+ // callback function before the script is fully loaded, in which case
+ // the root library may not be registered yet.
+ if (!lib.IsNull()) {
+ func = lib.LookupLocalFunction(callback_name);
+ }
}
return func.raw();
}

Powered by Google App Engine
This is Rietveld 408576698