isThenable should detect objects that expose then method.
isPromise should be updated to detect thenables of which constructor creates new promises up to constructor revealing pattern. Still check should not try to create a promise, instead just checking for existence of constructor.resolve and constructor.reject should be fine
isThenable
should detect objects that exposethen
method.isPromise
should be updated to detect thenables of which constructor creates new promises up to constructor revealing pattern. Still check should not try to create a promise, instead just checking for existence ofconstructor.resolve
andconstructor.reject
should be fine