We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b623788 commit d0874d3Copy full SHA for d0874d3
javascript/node/selenium-webdriver/lib/promise.js
@@ -35,7 +35,7 @@ function isPromise(value) {
35
try {
36
// Use array notation so the Closure compiler does not obfuscate away our
37
// contract.
38
- return value
+ return value != null
39
&& (typeof value === 'object' || typeof value === 'function')
40
&& typeof value['then'] === 'function';
41
} catch (ex) {
0 commit comments