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

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

Issue 1094243007: Fix Array constructor bug impacting dart2js and ddc running on the same page. (Closed) Base URL: git@github.com:dart-lang/dart-dev-compiler.git@master
Patch Set: ptal 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_runtime.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 core; 1 var core;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 class Object { 4 class Object {
5 constructor() { 5 constructor() {
6 let name = this.constructor.name; 6 let name = this.constructor.name;
7 let init = this[name]; 7 let init = this[name];
8 let result = void 0; 8 let result = void 0;
9 if (init) 9 if (init)
10 result = init.apply(this, arguments); 10 result = init.apply(this, arguments);
(...skipping 1598 matching lines...) Expand 10 before | Expand all | Expand 10 after
1609 return new (_internal.IterableMixinWorkaround$(E))().asMapList(this); 1609 return new (_internal.IterableMixinWorkaround$(E))().asMapList(this);
1610 } 1610 }
1611 } 1611 }
1612 List[dart.implements] = () => [Iterable$(E), _internal.EfficientLength]; 1612 List[dart.implements] = () => [Iterable$(E), _internal.EfficientLength];
1613 dart.defineNamedConstructor(List, 'filled'); 1613 dart.defineNamedConstructor(List, 'filled');
1614 dart.defineNamedConstructor(List, 'from'); 1614 dart.defineNamedConstructor(List, 'from');
1615 dart.defineNamedConstructor(List, 'generate'); 1615 dart.defineNamedConstructor(List, 'generate');
1616 return List; 1616 return List;
1617 }); 1617 });
1618 let List = List$(); 1618 let List = List$();
1619 dart.copyProperties(dart.global.Array.prototype, List.prototype); 1619 dart.registerExtension(dart.global.Array, List);
1620 let Map$ = dart.generic(function(K, V) { 1620 let Map$ = dart.generic(function(K, V) {
1621 class Map extends Object { 1621 class Map extends Object {
1622 Map() { 1622 Map() {
1623 return new (collection.LinkedHashMap$(K, V))(); 1623 return new (collection.LinkedHashMap$(K, V))();
1624 } 1624 }
1625 from(other) { 1625 from(other) {
1626 return new collection.LinkedHashMap$(K, V).from(other); 1626 return new collection.LinkedHashMap$(K, V).from(other);
1627 } 1627 }
1628 identity() { 1628 identity() {
1629 return new collection.LinkedHashMap$(K, V).identity(); 1629 return new collection.LinkedHashMap$(K, V).identity();
(...skipping 1895 matching lines...) Expand 10 before | Expand all | Expand 10 after
3525 exports.StackTrace = StackTrace; 3525 exports.StackTrace = StackTrace;
3526 exports.Stopwatch = Stopwatch; 3526 exports.Stopwatch = Stopwatch;
3527 exports.String = String; 3527 exports.String = String;
3528 exports.RuneIterator = RuneIterator; 3528 exports.RuneIterator = RuneIterator;
3529 exports.StringBuffer = StringBuffer; 3529 exports.StringBuffer = StringBuffer;
3530 exports.StringSink = StringSink; 3530 exports.StringSink = StringSink;
3531 exports.Symbol = Symbol; 3531 exports.Symbol = Symbol;
3532 exports.Type = Type; 3532 exports.Type = Type;
3533 exports.Uri = Uri; 3533 exports.Uri = Uri;
3534 })(core || (core = {})); 3534 })(core || (core = {}));
OLDNEW
« no previous file with comments | « no previous file | lib/runtime/dart_runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698