(promise, thenable)
| 297 | } |
| 298 | |
| 299 | function handleOwnThenable(promise, thenable) { |
| 300 | if (thenable._state === FULFILLED) { |
| 301 | fulfill(promise, thenable._result); |
| 302 | } else if (thenable._state === REJECTED) { |
| 303 | _reject(promise, thenable._result); |
| 304 | } else { |
| 305 | subscribe(thenable, undefined, function (value) { |
| 306 | return _resolve(promise, value); |
| 307 | }, function (reason) { |
| 308 | return _reject(promise, reason); |
| 309 | }); |
| 310 | } |
| 311 | } |
| 312 | |
| 313 | function handleMaybeThenable(promise, maybeThenable, then$$) { |
| 314 | if (maybeThenable.constructor === promise.constructor && then$$ === then && maybeThenable.constructor.resolve === resolve) { |
no test coverage detected