| Index: vm/dart_api_impl.cc
|
| ===================================================================
|
| --- vm/dart_api_impl.cc (revision 900)
|
| +++ vm/dart_api_impl.cc (working copy)
|
| @@ -1620,6 +1620,9 @@
|
| if (msg != NULL) {
|
| return Api::Error(msg);
|
| }
|
| + // Since this is only a snapshot the root library should not be set.
|
| + Isolate* isolate = Isolate::Current();
|
| + isolate->object_store()->set_root_library(Library::Handle());
|
| SnapshotWriter writer(true, snapshot_buffer, ApiAllocator);
|
| writer.WriteFullSnapshot();
|
| *snapshot_size = writer.Size();
|
|
|