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

Unified Diff: lib/runtime/dart/core.js

Issue 1122283002: fixes #158, precendence of call and access in new (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: redesgin Created 5 years, 7 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
« no previous file with comments | « lib/runtime/dart/collection.js ('k') | lib/runtime/dart/isolate.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/core.js
diff --git a/lib/runtime/dart/core.js b/lib/runtime/dart/core.js
index e8c8188aaa00902abd2145323839cb485bd367ff..66f25cbc52f20f2fc10efa6c304bf9d9cd2f4e3a 100644
--- a/lib/runtime/dart/core.js
+++ b/lib/runtime/dart/core.js
@@ -1150,7 +1150,7 @@ var core;
let newStart = dart.notNull(this[_start]) + dart.notNull(count);
if (dart.notNull(newStart) >= dart.notNull(this[_end]))
return new (_internal.EmptyIterable$(E))();
- return new exports._GeneratorIterable$(E).slice(newStart, this[_end], this[_generator]);
+ return new (exports._GeneratorIterable$(E)).slice(newStart, this[_end], this[_generator]);
}
[$take](count) {
RangeError.checkNotNegative(count, "count");
@@ -1159,7 +1159,7 @@ var core;
let newEnd = dart.notNull(this[_start]) + dart.notNull(count);
if (dart.notNull(newEnd) >= dart.notNull(this[_end]))
return this;
- return new exports._GeneratorIterable$(E).slice(this[_start], newEnd, this[_generator]);
+ return new (exports._GeneratorIterable$(E)).slice(this[_start], newEnd, this[_generator]);
}
static _id(n) {
return n;
@@ -1435,13 +1435,13 @@ var core;
[$toList](opts) {
let growable = opts && 'growable' in opts ? opts.growable : true;
if (growable) {
- return new _interceptors.JSArray$(E).markGrowable(this.slice());
+ return new (_interceptors.JSArray$(E)).markGrowable(this.slice());
} else {
- return new _interceptors.JSArray$(E).markFixed(this.slice());
+ return new (_interceptors.JSArray$(E)).markFixed(this.slice());
}
}
[$toSet]() {
- return new exports.Set$(E).from(this);
+ return new (exports.Set$(E)).from(this);
}
get [$iterator]() {
return new (_internal.ListIterator$(E))(this);
@@ -1589,7 +1589,7 @@ var core;
}
if (start == end)
return dart.setType([], List$(E));
- return new _interceptors.JSArray$(E).markGrowable(this.slice(start, end));
+ return new (_interceptors.JSArray$(E)).markGrowable(this.slice(start, end));
}
[$getRange](start, end) {
return new (_internal.IterableMixinWorkaround$(E))().getRangeList(this, start, end);
@@ -1644,16 +1644,16 @@ var core;
return new (collection.LinkedHashMap$(K, V))();
}
from(other) {
- return new collection.LinkedHashMap$(K, V).from(other);
+ return new (collection.LinkedHashMap$(K, V)).from(other);
}
identity() {
- return new collection.LinkedHashMap$(K, V).identity();
+ return new (collection.LinkedHashMap$(K, V)).identity();
}
fromIterable(iterable, opts) {
- return new collection.LinkedHashMap$(K, V).fromIterable(iterable, opts);
+ return new (collection.LinkedHashMap$(K, V)).fromIterable(iterable, opts);
}
fromIterables(keys, values) {
- return new collection.LinkedHashMap$(K, V).fromIterables(keys, values);
+ return new (collection.LinkedHashMap$(K, V)).fromIterables(keys, values);
}
}
dart.defineNamedConstructor(Map, 'from');
@@ -1697,10 +1697,10 @@ var core;
return new (collection.LinkedHashSet$(E))();
}
identity() {
- return new collection.LinkedHashSet$(E).identity();
+ return new (collection.LinkedHashSet$(E)).identity();
}
from(elements) {
- return new collection.LinkedHashSet$(E).from(elements);
+ return new (collection.LinkedHashSet$(E)).from(elements);
}
}
Set[dart.implements] = () => [_internal.EfficientLength];
« no previous file with comments | « lib/runtime/dart/collection.js ('k') | lib/runtime/dart/isolate.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698