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

Unified Diff: runtime/vm/object.cc

Issue 394343003: - Properly setup an Api scope before calling out through the API. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | tests/language/deferred_in_isolate_app.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 38321)
+++ runtime/vm/object.cc (working copy)
@@ -9804,8 +9804,9 @@
this->set_is_loaded();
return true;
} else if (deferred_lib.LoadNotStarted()) {
+ Isolate* isolate = Isolate::Current();
+ Api::Scope api_scope(isolate);
deferred_lib.SetLoadRequested();
- Isolate* isolate = Isolate::Current();
const String& lib_url = String::Handle(isolate, deferred_lib.url());
Dart_LibraryTagHandler handler = isolate->library_tag_handler();
handler(Dart_kImportTag,
« no previous file with comments | « no previous file | tests/language/deferred_in_isolate_app.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698