| Index: lib/runtime/dart/async.js
|
| diff --git a/lib/runtime/dart/async.js b/lib/runtime/dart/async.js
|
| index 7f59c20636db9ee5aaf2ecdc914a66d3dec59786..f84d8bce7ffbb2b1d28b92601d171d35c807159b 100644
|
| --- a/lib/runtime/dart/async.js
|
| +++ b/lib/runtime/dart/async.js
|
| @@ -2106,11 +2106,28 @@ var collection = dart.import(collection);
|
| _FutureListener.MASK_TEST_ERROR = 4;
|
| _FutureListener.MASK_WHENCOMPLETE = 8;
|
| _FutureListener.STATE_CHAIN = 0;
|
| - _FutureListener.STATE_THEN = _FutureListener.MASK_VALUE;
|
| - _FutureListener.STATE_THEN_ONERROR = dart.notNull(_FutureListener.MASK_VALUE) | dart.notNull(_FutureListener.MASK_ERROR);
|
| - _FutureListener.STATE_CATCHERROR = _FutureListener.MASK_ERROR;
|
| - _FutureListener.STATE_CATCHERROR_TEST = dart.notNull(_FutureListener.MASK_ERROR) | dart.notNull(_FutureListener.MASK_TEST_ERROR);
|
| - _FutureListener.STATE_WHENCOMPLETE = _FutureListener.MASK_WHENCOMPLETE;
|
| + dart.defineLazyProperties(_FutureListener, {
|
| + get STATE_THEN() {
|
| + return _FutureListener.MASK_VALUE;
|
| + },
|
| + set STATE_THEN(_) {},
|
| + get STATE_THEN_ONERROR() {
|
| + return dart.notNull(_FutureListener.MASK_VALUE) | dart.notNull(_FutureListener.MASK_ERROR);
|
| + },
|
| + set STATE_THEN_ONERROR(_) {},
|
| + get STATE_CATCHERROR() {
|
| + return _FutureListener.MASK_ERROR;
|
| + },
|
| + set STATE_CATCHERROR(_) {},
|
| + get STATE_CATCHERROR_TEST() {
|
| + return dart.notNull(_FutureListener.MASK_ERROR) | dart.notNull(_FutureListener.MASK_TEST_ERROR);
|
| + },
|
| + set STATE_CATCHERROR_TEST(_) {},
|
| + get STATE_WHENCOMPLETE() {
|
| + return _FutureListener.MASK_WHENCOMPLETE;
|
| + },
|
| + set STATE_WHENCOMPLETE(_) {}
|
| + });
|
| let _resultOrListeners = Symbol('_resultOrListeners');
|
| let _isChained = Symbol('_isChained');
|
| let _isComplete = Symbol('_isComplete');
|
| @@ -2126,21 +2143,21 @@ var collection = dart.import(collection);
|
| let _Future$ = dart.generic(function(T) {
|
| class _Future extends core.Object {
|
| _Future() {
|
| - this[_zone] = Zone.current;
|
| this[_state] = _Future._INCOMPLETE;
|
| + this[_zone] = Zone.current;
|
| this[_resultOrListeners] = null;
|
| }
|
| immediate(value) {
|
| - this[_zone] = Zone.current;
|
| this[_state] = _Future._INCOMPLETE;
|
| + this[_zone] = Zone.current;
|
| this[_resultOrListeners] = null;
|
| this[_asyncComplete](value);
|
| }
|
| immediateError(error, stackTrace) {
|
| if (stackTrace === void 0)
|
| stackTrace = null;
|
| - this[_zone] = Zone.current;
|
| this[_state] = _Future._INCOMPLETE;
|
| + this[_zone] = Zone.current;
|
| this[_resultOrListeners] = null;
|
| this[_asyncCompleteError](error, stackTrace);
|
| }
|
| @@ -2850,8 +2867,8 @@ var collection = dart.import(collection);
|
| let _StreamController$ = dart.generic(function(T) {
|
| class _StreamController extends core.Object {
|
| _StreamController() {
|
| - this[_varData] = null;
|
| this[_state] = _StreamController._STATE_INITIAL;
|
| + this[_varData] = null;
|
| this[_doneFuture] = null;
|
| }
|
| get stream() {
|
| @@ -3684,10 +3701,10 @@ var collection = dart.import(collection);
|
| let _StreamIteratorImpl$ = dart.generic(function(T) {
|
| class _StreamIteratorImpl extends core.Object {
|
| _StreamIteratorImpl(stream) {
|
| + this[_state] = _StreamIteratorImpl._STATE_FOUND;
|
| this[_subscription] = null;
|
| this[_current] = null;
|
| this[_futureOrPrefetch] = null;
|
| - this[_state] = _StreamIteratorImpl._STATE_FOUND;
|
| this[_subscription] = stream.listen(this[_onData].bind(this), {onError: this[_onError].bind(this), onDone: this[_onDone].bind(this), cancelOnError: true});
|
| }
|
| get current() {
|
| @@ -4651,8 +4668,16 @@ var collection = dart.import(collection);
|
| }
|
| }
|
| dart.defineNamedConstructor(Zone, '_');
|
| - Zone.ROOT = _ROOT_ZONE;
|
| - Zone._current = _ROOT_ZONE;
|
| + dart.defineLazyProperties(Zone, {
|
| + get ROOT() {
|
| + return _ROOT_ZONE;
|
| + },
|
| + set ROOT(_) {},
|
| + get _current() {
|
| + return _ROOT_ZONE;
|
| + },
|
| + set _current(_) {}
|
| + });
|
| let _delegate = Symbol('_delegate');
|
| // Function _parentDelegate: (_Zone) → ZoneDelegate
|
| function _parentDelegate(zone) {
|
|
|