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

Unified Diff: runtime/vm/object.cc

Issue 2842053003: Make EqualsIgnoringPrivateKey work with mixin applications. (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | runtime/vm/object_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index cd65cdca8158940c0080f129c163cdc6c9cc16f1..1faf36f3c21c5b7893a259717d32bccb3ccb5fdf 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -21138,7 +21138,8 @@ static bool EqualsIgnoringPrivateKey(const String& str1, const String& str2) {
if (ch == Library::kPrivateKeySeparator) {
// Consume a private key separator.
- while ((pos < len) && (T1::CharAt(str1, pos) != '.')) {
+ while ((pos < len) && (T1::CharAt(str1, pos) != '.') &&
+ (T1::CharAt(str1, pos) != '&')) {
pos++;
}
// Resume matching characters.
« no previous file with comments | « no previous file | runtime/vm/object_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698