Chromium Code Reviews| Index: runtime/vm/raw_object_snapshot.cc |
| diff --git a/runtime/vm/raw_object_snapshot.cc b/runtime/vm/raw_object_snapshot.cc |
| index e714f449257bcf527a5473efb9ac2da16ab4c41c..7e95f3026126773e97b8fbf38a8992967a9762eb 100644 |
| --- a/runtime/vm/raw_object_snapshot.cc |
| +++ b/runtime/vm/raw_object_snapshot.cc |
| @@ -2654,7 +2654,14 @@ RawMirrorReference* MirrorReference::ReadFrom(SnapshotReader* reader, |
| void RawMirrorReference::WriteTo(SnapshotWriter* writer, |
| intptr_t object_id, |
| Snapshot::Kind kind) { |
| - UNREACHABLE(); |
| + if (kind == Snapshot::kFull) { |
|
siva
2013/10/31 17:39:41
this should be both kFull and kScript right.
Alte
|
| + UNREACHABLE(); |
| + } else { |
| + // We do not allow objects with native fields in an isolate message. |
| + writer->SetWriteException(Exceptions::kArgument, |
| + "Illegal argument in isolate message" |
| + " : (object is a MirrorReference)"); |
| + } |
| } |
| } // namespace dart |