# HG changeset patch # User cin # Date 1516929214 -10800 # Node ID b904e0a3ba72e62c1ad4d493c6b9bc986cbf69fd # Parent eee3e49dd1ff5124cded2637ae947b669b357c48 working on promises diff -r eee3e49dd1ff -r b904e0a3ba72 Implab/Deferred.cs --- a/Implab/Deferred.cs Thu Jan 25 19:09:16 2018 +0300 +++ b/Implab/Deferred.cs Fri Jan 26 04:13:34 2018 +0300 @@ -36,9 +36,9 @@ else if (m_dispatcher != null) // dispatch (see ecma-262/6.0: 25.4.1.3.2 Promise Resolve Functions) - m_dispatcher.Enqueue(() => thenable.Then(this)); + m_dispatcher.Enqueue(() => Chain(thenable)); else - thenable.Then(this); + Chain(thenable); } void Chain(IPromise thenable) { diff -r eee3e49dd1ff -r b904e0a3ba72 Implab/IResolvable.cs --- a/Implab/IResolvable.cs Thu Jan 25 19:09:16 2018 +0300 +++ b/Implab/IResolvable.cs Fri Jan 26 04:13:34 2018 +0300 @@ -8,8 +8,6 @@ void Resolve(); - void Resolve(IPromise thenable); - /// /// Reject the promise with the specified error. ///