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

Unified Diff: runtime/lib/literal_factory.dart

Issue 10982045: Make data setter private on GrowableObjectArray. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
Index: runtime/lib/literal_factory.dart
diff --git a/runtime/lib/literal_factory.dart b/runtime/lib/literal_factory.dart
index d435784a67de729c01a1a39eb649b779d92bf46c..d7874331ad6936777c2185341bac5257559359ee 100644
--- a/runtime/lib/literal_factory.dart
+++ b/runtime/lib/literal_factory.dart
@@ -10,7 +10,7 @@ class _ListLiteralFactory<E> {
factory List.fromLiteral(List elements) {
var list = new GrowableObjectArray<E>();
if (elements.length > 0) {
- list.data = elements;
+ list._setData(elements);
list.length = elements.length;
}
return list;

Powered by Google App Engine
This is Rietveld 408576698