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

Unified Diff: runtime/vm/snapshot.cc

Issue 93873014: Update isolate documentation. Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add isolateMessageException Created 7 years 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/snapshot.cc
diff --git a/runtime/vm/snapshot.cc b/runtime/vm/snapshot.cc
index c05a8faeef8118e378f54e58d788d6d4944223ef..b7909ac64fadcbbb16ebe84778df5973cbbd5cb7 100644
--- a/runtime/vm/snapshot.cc
+++ b/runtime/vm/snapshot.cc
@@ -1365,13 +1365,13 @@ void SnapshotWriter::ArrayWriteTo(intptr_t object_id,
void SnapshotWriter::CheckIfSerializable(RawClass* cls) {
if (Class::IsSignatureClass(cls)) {
// We do not allow closure objects in an isolate message.
- SetWriteException(Exceptions::kArgument,
+ SetWriteException(Exceptions::kIsolateMessage,
"Illegal argument in isolate message"
" : (object is a closure)");
}
if (cls->ptr()->num_native_fields_ != 0) {
// We do not allow objects with native fields in an isolate message.
- SetWriteException(Exceptions::kArgument,
+ SetWriteException(Exceptions::kIsolateMessage,
"Illegal argument in isolate message"
" : (object extends NativeWrapper)");
}

Powered by Google App Engine
This is Rietveld 408576698