(obj)
| 188 | } |
| 189 | |
| 190 | function isPromise(obj) { |
| 191 | //maybe not the best of all checks but at least it's compliant to Promises/A+ |
| 192 | //see https://promisesaplus.com |
| 193 | return obj !== null && typeof obj === 'object' && (typeof obj.then === 'function' || isPromise(obj.promise)); |
| 194 | } |
| 195 | |
| 196 | function wrapPromise(promiseable, sandbox, events, done, sandboxRoot) { |
| 197 | var realPromise = promiseable; |
no outgoing calls
no test coverage detected