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

Unified Diff: runtime/vm/isolate.cc

Issue 35393003: Retain script path of parent isolate when spawnFunction is called so that (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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 29136)
+++ runtime/vm/isolate.cc (working copy)
@@ -968,15 +968,6 @@
}
-static char* GetRootScriptUri(Isolate* isolate) {
- const Library& library =
- Library::Handle(isolate->object_store()->root_library());
- ASSERT(!library.IsNull());
- const String& script_name = String::Handle(library.url());
- return isolate->current_zone()->MakeCopyOfString(script_name.ToCString());
-}
-
-
IsolateSpawnState::IsolateSpawnState(const Function& func,
const Function& callback_func)
: isolate_(NULL),
@@ -984,7 +975,7 @@
library_url_(NULL),
function_name_(NULL),
exception_callback_name_(NULL) {
- script_url_ = strdup(GetRootScriptUri(Isolate::Current()));
+ script_url_ = NULL;
const Class& cls = Class::Handle(func.Owner());
ASSERT(cls.IsTopLevel());
const Library& lib = Library::Handle(cls.library());

Powered by Google App Engine
This is Rietveld 408576698