Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FABN-1000] Use less strict "is promise" check
In complex Node.js applications, two or more promise implementations may be available, providing different Promise classes. These different Promise classes have the same standard interface, but you cannot rely on instanceof to work as you would expect. This has been seen as a problem in the ctor for AbstractEventStrategy when running within VSCode, where an error is thrown because a promise is not an instanceof Promise (even though it is a valid promise!). Use the "is-promise" module instead which checks to see if the object is "thenable" (has a .then()) method instead. Change-Id: I6f47877b9be5815379163ffe5dc8d8cae1deba7b Signed-off-by: Simon Stone <[email protected]>
- Loading branch information