| Index: lib/runtime/dart/collection.js
|
| diff --git a/lib/runtime/dart/collection.js b/lib/runtime/dart/collection.js
|
| index 0258338ce0d561978060bc1d6c4f3552f4b1246b..febdf94eb2292b7e46d83dda7048ee178902e808 100644
|
| --- a/lib/runtime/dart/collection.js
|
| +++ b/lib/runtime/dart/collection.js
|
| @@ -560,10 +560,10 @@ var collection;
|
| }
|
| [core.$toList](opts) {
|
| let growable = opts && 'growable' in opts ? opts.growable : true;
|
| - return new core.List$(E).from(this, {growable: growable});
|
| + return new (core.List$(E)).from(this, {growable: growable});
|
| }
|
| [core.$toSet]() {
|
| - return new core.Set$(E).from(this);
|
| + return new (core.Set$(E)).from(this);
|
| }
|
| get [core.$length]() {
|
| dart.assert(!dart.is(this, _internal.EfficientLength));
|
| @@ -776,10 +776,10 @@ var collection;
|
| }
|
| [core.$toList](opts) {
|
| let growable = opts && 'growable' in opts ? opts.growable : true;
|
| - return new core.List$(E).from(this, {growable: growable});
|
| + return new (core.List$(E)).from(this, {growable: growable});
|
| }
|
| [core.$toSet]() {
|
| - return new core.Set$(E).from(this);
|
| + return new (core.Set$(E)).from(this);
|
| }
|
| get [core.$length]() {
|
| dart.assert(!dart.is(this, _internal.EfficientLength));
|
| @@ -2224,7 +2224,7 @@ var collection;
|
| return new (ListQueue$(E))();
|
| }
|
| from(elements) {
|
| - return new ListQueue$(E).from(elements);
|
| + return new (ListQueue$(E)).from(elements);
|
| }
|
| [Symbol.iterator]() {
|
| return new dart.JsIterator(this[core.$iterator]);
|
|
|