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

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

Issue 1633003002: Add --modules=node support (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: regen sdk and expectations Created 4 years, 11 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
Index: lib/runtime/dart/_internal.js
diff --git a/lib/runtime/dart/_internal.js b/lib/runtime/dart/_internal.js
index 4ee7fd170ee949803e42514ecdf9cffc618e56bf..133766c100e5580626f52fe2b05a058d6a5f7eec 100644
--- a/lib/runtime/dart/_internal.js
+++ b/lib/runtime/dart/_internal.js
@@ -274,7 +274,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
]);
return ListIterable;
});
- let ListIterable = ListIterable$();
+ const ListIterable = ListIterable$();
const _iterable = dart.JsSymbol('_iterable');
const _start = dart.JsSymbol('_start');
const _endOrLength = dart.JsSymbol('_endOrLength');
@@ -375,7 +375,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
]);
return SubListIterable;
});
- let SubListIterable = SubListIterable$();
+ const SubListIterable = SubListIterable$();
const _length = dart.JsSymbol('_length');
const _index = dart.JsSymbol('_index');
const _current = dart.JsSymbol('_current');
@@ -411,12 +411,12 @@ dart_library.library('dart/_internal', null, /* Imports */[
});
return ListIterator;
});
- let ListIterator = ListIterator$();
+ const ListIterator = ListIterator$();
const _Transformation$ = dart.generic(function(S, T) {
const _Transformation = dart.typedef('_Transformation', () => dart.functionType(T, [S]));
return _Transformation;
});
- let _Transformation = _Transformation$();
+ const _Transformation = _Transformation$();
const _f = dart.JsSymbol('_f');
const MappedIterable$ = dart.generic(function(S, T) {
class MappedIterable extends collection.IterableBase$(T) {
@@ -472,7 +472,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
]);
return MappedIterable;
});
- let MappedIterable = MappedIterable$();
+ const MappedIterable = MappedIterable$();
const EfficientLengthMappedIterable$ = dart.generic(function(S, T) {
class EfficientLengthMappedIterable extends MappedIterable$(S, T) {
EfficientLengthMappedIterable(iterable, func) {
@@ -485,7 +485,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
});
return EfficientLengthMappedIterable;
});
- let EfficientLengthMappedIterable = EfficientLengthMappedIterable$();
+ const EfficientLengthMappedIterable = EfficientLengthMappedIterable$();
const _iterator = dart.JsSymbol('_iterator');
const MappedIterator$ = dart.generic(function(S, T) {
class MappedIterator extends core.Iterator$(T) {
@@ -512,7 +512,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
});
return MappedIterator;
});
- let MappedIterator = MappedIterator$();
+ const MappedIterator = MappedIterator$();
const _source = dart.JsSymbol('_source');
const MappedListIterable$ = dart.generic(function(S, T) {
class MappedListIterable extends ListIterable$(T) {
@@ -536,12 +536,12 @@ dart_library.library('dart/_internal', null, /* Imports */[
dart.defineExtensionMembers(MappedListIterable, ['elementAt', 'length']);
return MappedListIterable;
});
- let MappedListIterable = MappedListIterable$();
+ const MappedListIterable = MappedListIterable$();
const _ElementPredicate$ = dart.generic(function(E) {
const _ElementPredicate = dart.typedef('_ElementPredicate', () => dart.functionType(core.bool, [E]));
return _ElementPredicate;
});
- let _ElementPredicate = _ElementPredicate$();
+ const _ElementPredicate = _ElementPredicate$();
const WhereIterable$ = dart.generic(function(E) {
class WhereIterable extends collection.IterableBase$(E) {
WhereIterable(iterable, f) {
@@ -559,7 +559,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
dart.defineExtensionMembers(WhereIterable, ['iterator']);
return WhereIterable;
});
- let WhereIterable = WhereIterable$();
+ const WhereIterable = WhereIterable$();
const WhereIterator$ = dart.generic(function(E) {
class WhereIterator extends core.Iterator$(E) {
WhereIterator(iterator, f) {
@@ -584,12 +584,12 @@ dart_library.library('dart/_internal', null, /* Imports */[
});
return WhereIterator;
});
- let WhereIterator = WhereIterator$();
+ const WhereIterator = WhereIterator$();
const _ExpandFunction$ = dart.generic(function(S, T) {
const _ExpandFunction = dart.typedef('_ExpandFunction', () => dart.functionType(core.Iterable$(T), [S]));
return _ExpandFunction;
});
- let _ExpandFunction = _ExpandFunction$();
+ const _ExpandFunction = _ExpandFunction$();
const ExpandIterable$ = dart.generic(function(S, T) {
class ExpandIterable extends collection.IterableBase$(T) {
ExpandIterable(iterable, f) {
@@ -607,7 +607,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
dart.defineExtensionMembers(ExpandIterable, ['iterator']);
return ExpandIterable;
});
- let ExpandIterable = ExpandIterable$();
+ const ExpandIterable = ExpandIterable$();
const _currentExpansion = dart.JsSymbol('_currentExpansion');
const _nextExpansion = dart.JsSymbol('_nextExpansion');
const ExpandIterator$ = dart.generic(function(S, T) {
@@ -647,7 +647,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
});
return ExpandIterator;
});
- let ExpandIterator = ExpandIterator$();
+ const ExpandIterator = ExpandIterator$();
const _takeCount = dart.JsSymbol('_takeCount');
const TakeIterable$ = dart.generic(function(E) {
class TakeIterable extends collection.IterableBase$(E) {
@@ -679,7 +679,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
dart.defineExtensionMembers(TakeIterable, ['iterator']);
return TakeIterable;
});
- let TakeIterable = TakeIterable$();
+ const TakeIterable = TakeIterable$();
const EfficientLengthTakeIterable$ = dart.generic(function(E) {
class EfficientLengthTakeIterable extends TakeIterable$(E) {
EfficientLengthTakeIterable(iterable, takeCount) {
@@ -698,7 +698,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
dart.defineExtensionMembers(EfficientLengthTakeIterable, ['length']);
return EfficientLengthTakeIterable;
});
- let EfficientLengthTakeIterable = EfficientLengthTakeIterable$();
+ const EfficientLengthTakeIterable = EfficientLengthTakeIterable$();
const _remaining = dart.JsSymbol('_remaining');
const TakeIterator$ = dart.generic(function(E) {
class TakeIterator extends core.Iterator$(E) {
@@ -726,7 +726,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
});
return TakeIterator;
});
- let TakeIterator = TakeIterator$();
+ const TakeIterator = TakeIterator$();
const TakeWhileIterable$ = dart.generic(function(E) {
class TakeWhileIterable extends collection.IterableBase$(E) {
TakeWhileIterable(iterable, f) {
@@ -744,7 +744,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
dart.defineExtensionMembers(TakeWhileIterable, ['iterator']);
return TakeWhileIterable;
});
- let TakeWhileIterable = TakeWhileIterable$();
+ const TakeWhileIterable = TakeWhileIterable$();
const _isFinished = dart.JsSymbol('_isFinished');
const TakeWhileIterator$ = dart.generic(function(E) {
class TakeWhileIterator extends core.Iterator$(E) {
@@ -772,7 +772,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
});
return TakeWhileIterator;
});
- let TakeWhileIterator = TakeWhileIterator$();
+ const TakeWhileIterator = TakeWhileIterator$();
const _skipCount = dart.JsSymbol('_skipCount');
const SkipIterable$ = dart.generic(function(E) {
class SkipIterable extends collection.IterableBase$(E) {
@@ -813,7 +813,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
dart.defineExtensionMembers(SkipIterable, ['skip', 'iterator']);
return SkipIterable;
});
- let SkipIterable = SkipIterable$();
+ const SkipIterable = SkipIterable$();
const EfficientLengthSkipIterable$ = dart.generic(function(E) {
class EfficientLengthSkipIterable extends SkipIterable$(E) {
EfficientLengthSkipIterable(iterable, skipCount) {
@@ -832,7 +832,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
dart.defineExtensionMembers(EfficientLengthSkipIterable, ['length']);
return EfficientLengthSkipIterable;
});
- let EfficientLengthSkipIterable = EfficientLengthSkipIterable$();
+ const EfficientLengthSkipIterable = EfficientLengthSkipIterable$();
const SkipIterator$ = dart.generic(function(E) {
class SkipIterator extends core.Iterator$(E) {
SkipIterator(iterator, skipCount) {
@@ -856,7 +856,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
});
return SkipIterator;
});
- let SkipIterator = SkipIterator$();
+ const SkipIterator = SkipIterator$();
const SkipWhileIterable$ = dart.generic(function(E) {
class SkipWhileIterable extends collection.IterableBase$(E) {
SkipWhileIterable(iterable, f) {
@@ -874,7 +874,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
dart.defineExtensionMembers(SkipWhileIterable, ['iterator']);
return SkipWhileIterable;
});
- let SkipWhileIterable = SkipWhileIterable$();
+ const SkipWhileIterable = SkipWhileIterable$();
const _hasSkipped = dart.JsSymbol('_hasSkipped');
const SkipWhileIterator$ = dart.generic(function(E) {
class SkipWhileIterator extends core.Iterator$(E) {
@@ -902,7 +902,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
});
return SkipWhileIterator;
});
- let SkipWhileIterator = SkipWhileIterator$();
+ const SkipWhileIterator = SkipWhileIterator$();
const EmptyIterable$ = dart.generic(function(E) {
class EmptyIterable extends collection.IterableBase$(E) {
EmptyIterable() {
@@ -1060,7 +1060,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
]);
return EmptyIterable;
});
- let EmptyIterable = EmptyIterable$();
+ const EmptyIterable = EmptyIterable$();
const EmptyIterator$ = dart.generic(function(E) {
class EmptyIterator extends core.Object {
EmptyIterator() {
@@ -1079,13 +1079,13 @@ dart_library.library('dart/_internal', null, /* Imports */[
});
return EmptyIterator;
});
- let EmptyIterator = EmptyIterator$();
+ const EmptyIterator = EmptyIterator$();
const BidirectionalIterator$ = dart.generic(function(T) {
class BidirectionalIterator extends core.Object {}
BidirectionalIterator[dart.implements] = () => [core.Iterator$(T)];
return BidirectionalIterator;
});
- let BidirectionalIterator = BidirectionalIterator$();
+ const BidirectionalIterator = BidirectionalIterator$();
const IterableMixinWorkaround$ = dart.generic(function(T) {
class IterableMixinWorkaround extends core.Object {
static contains(iterable, element) {
@@ -1494,7 +1494,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
});
return IterableMixinWorkaround;
});
- let IterableMixinWorkaround = IterableMixinWorkaround$();
+ const IterableMixinWorkaround = IterableMixinWorkaround$();
class IterableElementError extends core.Object {
static noElement() {
return new core.StateError("No element");
@@ -1518,12 +1518,12 @@ dart_library.library('dart/_internal', null, /* Imports */[
const __CastType0 = dart.typedef('__CastType0', () => dart.functionType(core.Iterable$(T), [S]));
return __CastType0;
});
- let __CastType0 = __CastType0$();
+ const __CastType0 = __CastType0$();
const __CastType2$ = dart.generic(function(T) {
const __CastType2 = dart.typedef('__CastType2', () => dart.functionType(core.bool, [T]));
return __CastType2;
});
- let __CastType2 = __CastType2$();
+ const __CastType2 = __CastType2$();
const FixedLengthListMixin$ = dart.generic(function(E) {
class FixedLengthListMixin extends core.Object {
set length(newLength) {
@@ -1591,7 +1591,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
});
return FixedLengthListMixin;
});
- let FixedLengthListMixin = FixedLengthListMixin$();
+ const FixedLengthListMixin = FixedLengthListMixin$();
const UnmodifiableListMixin$ = dart.generic(function(E) {
class UnmodifiableListMixin extends core.Object {
set(index, value) {
@@ -1715,7 +1715,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
]);
return UnmodifiableListMixin;
});
- let UnmodifiableListMixin = UnmodifiableListMixin$();
+ const UnmodifiableListMixin = UnmodifiableListMixin$();
const FixedLengthListBase$ = dart.generic(function(E) {
class FixedLengthListBase extends dart.mixin(collection.ListBase$(E), FixedLengthListMixin$(E)) {
FixedLengthListBase() {
@@ -1724,7 +1724,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
}
return FixedLengthListBase;
});
- let FixedLengthListBase = FixedLengthListBase$();
+ const FixedLengthListBase = FixedLengthListBase$();
const UnmodifiableListBase$ = dart.generic(function(E) {
class UnmodifiableListBase extends dart.mixin(collection.ListBase$(E), UnmodifiableListMixin$(E)) {
UnmodifiableListBase() {
@@ -1733,7 +1733,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
}
return UnmodifiableListBase;
});
- let UnmodifiableListBase = UnmodifiableListBase$();
+ const UnmodifiableListBase = UnmodifiableListBase$();
const _backedList = dart.JsSymbol('_backedList');
class _ListIndicesIterable extends ListIterable$(core.int) {
_ListIndicesIterable(backedList) {
@@ -1833,7 +1833,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
});
return ListMapView;
});
- let ListMapView = ListMapView$();
+ const ListMapView = ListMapView$();
const ReversedListIterable$ = dart.generic(function(E) {
class ReversedListIterable extends ListIterable$(E) {
ReversedListIterable(source) {
@@ -1854,7 +1854,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
dart.defineExtensionMembers(ReversedListIterable, ['elementAt', 'length']);
return ReversedListIterable;
});
- let ReversedListIterable = ReversedListIterable$();
+ const ReversedListIterable = ReversedListIterable$();
class UnmodifiableListError extends core.Object {
static add() {
return new core.UnsupportedError("Cannot add to unmodifiable List");

Powered by Google App Engine
This is Rietveld 408576698