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

Unified Diff: lib/runtime/dart/_internal.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 | « no previous file | lib/runtime/dart/_isolate_helper.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_internal.js
diff --git a/lib/runtime/dart/_internal.js b/lib/runtime/dart/_internal.js
index 28c8148f5bd8eff012b3737e6a29dfe7c060ab59..9bb278987a5bf01afdcf9fdeb5ca0191ea4f948b 100644
--- a/lib/runtime/dart/_internal.js
+++ b/lib/runtime/dart/_internal.js
@@ -372,7 +372,7 @@ var _internal;
if (dart.is(iterable, EfficientLength)) {
return new (EfficientLengthMappedIterable$(S, T))(iterable, func);
}
- return new MappedIterable$(S, T)._(dart.as(iterable, core.Iterable$(S)), func);
+ return new (MappedIterable$(S, T))._(dart.as(iterable, core.Iterable$(S)), func);
}
_(iterable, f) {
this[_iterable] = iterable;
@@ -560,7 +560,7 @@ var _internal;
if (dart.is(iterable, EfficientLength)) {
return new (EfficientLengthTakeIterable$(E))(iterable, takeCount);
}
- return new TakeIterable$(E)._(iterable, takeCount);
+ return new (TakeIterable$(E))._(iterable, takeCount);
}
_(iterable, takeCount) {
this[_iterable] = iterable;
@@ -663,7 +663,7 @@ var _internal;
if (dart.is(iterable, EfficientLength)) {
return new (EfficientLengthSkipIterable$(E))(iterable, count);
}
- return new SkipIterable$(E)._(iterable, count);
+ return new (SkipIterable$(E))._(iterable, count);
}
_(iterable, skipCount) {
this[_iterable] = iterable;
@@ -679,7 +679,7 @@ var _internal;
throw new core.ArgumentError.value(this[_skipCount], "count is not an integer");
}
core.RangeError.checkNotNegative(this[_skipCount], "count");
- return new SkipIterable$(E)._(this[_iterable], dart.notNull(this[_skipCount]) + dart.notNull(count));
+ return new (SkipIterable$(E))._(this[_iterable], dart.notNull(this[_skipCount]) + dart.notNull(count));
}
get [core.$iterator]() {
return new (SkipIterator$(E))(this[_iterable][core.$iterator], this[_skipCount]);
« no previous file with comments | « no previous file | lib/runtime/dart/_isolate_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698