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

Unified Diff: runtime/vm/object.cc

Issue 34533003: VM: Always return immutable collections from the mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « runtime/lib/mirrors_impl.dart ('k') | sdk/lib/_internal/lib/js_mirrors.dart » ('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 34a530792daf74bbf15f65d4950af01d612b0080..0f3c7054de0e7669eae1777a5b517df6710da3ab 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -330,7 +330,8 @@ RawString* String::IdentifierPrettyNameRetainPrivate(const String& name) {
}
start = i + 1;
} else if (name.CharAt(i) == '@') {
- ASSERT(at_pos == -1); // Only one @ is supported.
+ // Setters should have only one @ so we know where to put the =.
+ ASSERT(!is_setter || (at_pos == -1));
rmacnak 2013/10/22 18:32:52 This change allows for names of the form _Private
at_pos = i;
}
}
« no previous file with comments | « runtime/lib/mirrors_impl.dart ('k') | sdk/lib/_internal/lib/js_mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698