| Index: lib/runtime/dart/collection.js
|
| diff --git a/lib/runtime/dart/collection.js b/lib/runtime/dart/collection.js
|
| index 9936fce10d9a5a35f63d6e04a4cfc034df52a457..134246f48c0810dcec7f761308d913f7a68a779e 100644
|
| --- a/lib/runtime/dart/collection.js
|
| +++ b/lib/runtime/dart/collection.js
|
| @@ -1481,10 +1481,8 @@ var collection;
|
| let growable = opts && 'growable' in opts ? opts.growable : true;
|
| let result = null;
|
| if (growable) {
|
| - result = ((_) => {
|
| - _[core.$length] = this.length;
|
| - return _;
|
| - }).bind(this)(new (core.List$(E))());
|
| + result = new (core.List$(E))();
|
| + result[core.$length] = this.length;
|
| } else {
|
| result = new (core.List$(E))(this.length);
|
| }
|
| @@ -2382,10 +2380,8 @@ var collection;
|
| let growable = opts && 'growable' in opts ? opts.growable : true;
|
| let list = null;
|
| if (growable) {
|
| - list = ((_) => {
|
| - _[core.$length] = this.length;
|
| - return _;
|
| - }).bind(this)(new (core.List$(E))());
|
| + list = new (core.List$(E))();
|
| + list[core.$length] = this.length;
|
| } else {
|
| list = new (core.List$(E))(this.length);
|
| }
|
|
|