| Index: tests/html/native_gc_test.dart
|
| diff --git a/tests/html/native_gc_test.dart b/tests/html/native_gc_test.dart
|
| index fe27e0bb3c7d48e4f2305b5cdb47725cf8b6d891..87251be4c19fb67c1b42520f40c73e6dac73cd8e 100644
|
| --- a/tests/html/native_gc_test.dart
|
| +++ b/tests/html/native_gc_test.dart
|
| @@ -14,7 +14,7 @@ main() {
|
| for (int i = 0; i < M; ++i) {
|
| // This memory should be freed when the listener below is
|
| // collected.
|
| - List l = new List(N);
|
| + List l = new List.fixedLength(N);
|
|
|
| // Record the iteration number.
|
| l[N - 1] = i;
|
| @@ -47,7 +47,7 @@ main() {
|
| }
|
|
|
| void triggerMajorGC() {
|
| - List list = new List(1000000);
|
| + List list = new List.fixedLength(1000000);
|
| Element div = new DivElement();
|
| div.on.click.add((e) => print(list[0]));
|
| }
|
|
|