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

Side by Side Diff: lib/runtime/dart/_internal.js

Issue 1052693004: move => bind this workaround to js_ast (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | lib/runtime/dart/_isolate_helper.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var _internal; 1 var _internal;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 class EfficientLength extends core.Object { 4 class EfficientLength extends core.Object {
5 } 5 }
6 let ListIterable$ = dart.generic(function(E) { 6 let ListIterable$ = dart.generic(function(E) {
7 class ListIterable extends collection.IterableBase$(E) { 7 class ListIterable extends collection.IterableBase$(E) {
8 ListIterable() { 8 ListIterable() {
9 super.IterableBase(); 9 super.IterableBase();
10 } 10 }
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 let start = this[_start]; 297 let start = this[_start];
298 let end = this[_iterable].length; 298 let end = this[_iterable].length;
299 if (this[_endOrLength] != null && dart.notNull(this[_endOrLength]) < dar t.notNull(end)) 299 if (this[_endOrLength] != null && dart.notNull(this[_endOrLength]) < dar t.notNull(end))
300 end = this[_endOrLength]; 300 end = this[_endOrLength];
301 let length = dart.notNull(end) - dart.notNull(start); 301 let length = dart.notNull(end) - dart.notNull(start);
302 if (dart.notNull(length) < 0) 302 if (dart.notNull(length) < 0)
303 length = 0; 303 length = 0;
304 let result = growable ? ((_) => { 304 let result = growable ? ((_) => {
305 _.length = length; 305 _.length = length;
306 return _; 306 return _;
307 }).bind(this)(new (core.List$(E))()) : new (core.List$(E))(length); 307 })(new (core.List$(E))()) : new (core.List$(E))(length);
308 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull (i) + 1) { 308 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull (i) + 1) {
309 result.set(i, this[_iterable].elementAt(dart.notNull(start) + dart.not Null(i))); 309 result.set(i, this[_iterable].elementAt(dart.notNull(start) + dart.not Null(i)));
310 if (dart.notNull(this[_iterable].length) < dart.notNull(end)) 310 if (dart.notNull(this[_iterable].length) < dart.notNull(end))
311 throw new core.ConcurrentModificationError(this); 311 throw new core.ConcurrentModificationError(this);
312 } 312 }
313 return dart.as(result, core.List$(E)); 313 return dart.as(result, core.List$(E));
314 } 314 }
315 } 315 }
316 return SubListIterable; 316 return SubListIterable;
317 }); 317 });
(...skipping 1581 matching lines...) Expand 10 before | Expand all | Expand 10 after
1899 exports.ReversedListIterable$ = ReversedListIterable$; 1899 exports.ReversedListIterable$ = ReversedListIterable$;
1900 exports.UnmodifiableListError = UnmodifiableListError; 1900 exports.UnmodifiableListError = UnmodifiableListError;
1901 exports.NonGrowableListError = NonGrowableListError; 1901 exports.NonGrowableListError = NonGrowableListError;
1902 exports.makeListFixedLength = makeListFixedLength; 1902 exports.makeListFixedLength = makeListFixedLength;
1903 exports.Lists = Lists; 1903 exports.Lists = Lists;
1904 exports.printToConsole = printToConsole; 1904 exports.printToConsole = printToConsole;
1905 exports.Sort = Sort; 1905 exports.Sort = Sort;
1906 exports.Symbol = Symbol; 1906 exports.Symbol = Symbol;
1907 exports.POWERS_OF_TEN = POWERS_OF_TEN; 1907 exports.POWERS_OF_TEN = POWERS_OF_TEN;
1908 })(_internal || (_internal = {})); 1908 })(_internal || (_internal = {}));
OLDNEW
« 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