Chromium Code Reviews| Index: lib/runtime/dart/_internal.js |
| diff --git a/lib/runtime/dart/_internal.js b/lib/runtime/dart/_internal.js |
| index 5744266645907a7ef4f560614480eaae8855ea17..e9da6665b0b62f0ecfb099d1146caf61dfba1df0 100644 |
| --- a/lib/runtime/dart/_internal.js |
| +++ b/lib/runtime/dart/_internal.js |
| @@ -200,10 +200,8 @@ var _internal; |
| 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))(); |
|
Jennifer Messerly
2015/04/08 20:21:26
FYI: this is a bug fix. Analyzer used to think all
|
| + result[core.$length] = this.length; |
| } else { |
| result = new (core.List$(E))(this.length); |
| } |