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

Unified Diff: runtime/vm/snapshot.cc

Issue 2509413002: An isolate created with spawn function doesn't necessarily agree with its parent on the library pri… (Closed)
Patch Set: . Created 4 years, 1 month 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 | « no previous file | tests/isolate/isolate.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot.cc
diff --git a/runtime/vm/snapshot.cc b/runtime/vm/snapshot.cc
index 427a19600ca2d3b04491b4f9269d60f27b9cc6f9..b7a1b83c5e8e6aa1d04e29462b6fd0e7ea240616 100644
--- a/runtime/vm/snapshot.cc
+++ b/runtime/vm/snapshot.cc
@@ -268,7 +268,7 @@ RawClass* SnapshotReader::ReadClassId(intptr_t object_id) {
SetReadException("Invalid object found in message.");
}
str_ ^= ReadObjectImpl(kAsInlinedObject);
- cls = library_.LookupClass(str_);
+ cls = library_.LookupClassAllowPrivate(str_);
if (cls.IsNull()) {
SetReadException("Invalid object found in message.");
}
@@ -299,7 +299,7 @@ RawFunction* SnapshotReader::ReadFunctionId(intptr_t object_id) {
str_ ^= ReadObjectImpl(kAsInlinedObject);
func ^= library_.LookupLocalFunction(str_);
} else {
- cls_ = library_.LookupClass(str_);
+ cls_ = library_.LookupClassAllowPrivate(str_);
if (cls_.IsNull()) {
SetReadException("Expected a class name, but found an invalid name.");
}
« no previous file with comments | « no previous file | tests/isolate/isolate.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698