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

Unified Diff: runtime/bin/vmservice_impl.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
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/include/dart_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice_impl.cc
===================================================================
--- runtime/bin/vmservice_impl.cc (revision 29176)
+++ runtime/bin/vmservice_impl.cc (working copy)
@@ -84,8 +84,10 @@
bool VmService::_Start(intptr_t server_port) {
ASSERT(isolate_ == NULL);
char* error = NULL;
- isolate_ = Dart_CreateIsolate("vmservice:", "main", snapshot_buffer,
- new IsolateData(),
+ const char* script_uri = "vmservice:";
+ IsolateData* isolate_data = new IsolateData(script_uri);
+ isolate_ = Dart_CreateIsolate(script_uri, "main", snapshot_buffer,
+ isolate_data,
&error);
if (isolate_ == NULL) {
error_msg_ = error;
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/include/dart_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698