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

Unified Diff: tests/html/native_gc_test.dart

Issue 12328104: Change new List(n) to return fixed length list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. Created 7 years, 10 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: tests/html/native_gc_test.dart
diff --git a/tests/html/native_gc_test.dart b/tests/html/native_gc_test.dart
index 45a89e996cdaf871774781139f8bd0d544c586f9..8ed06bb02592cd4fe5729b93495f603d6a94bac1 100644
--- a/tests/html/native_gc_test.dart
+++ b/tests/html/native_gc_test.dart
@@ -16,7 +16,7 @@ main() {
for (int i = 0; i < M; ++i) {
// This memory should be freed when the listener below is
// collected.
- List l = new List.fixedLength(N);
+ List l = new List(N);
// Record the iteration number.
l[N - 1] = i;
@@ -53,7 +53,7 @@ main() {
}
void triggerMajorGC() {
- List list = new List.fixedLength(1000000);
+ List list = new List(1000000);
Element div = new DivElement();
div.onClick.listen((e) => print(list[0]));
}

Powered by Google App Engine
This is Rietveld 408576698