diff --git a/src/engine/execute.js b/src/engine/execute.js index a4bf76b2a..24864592f 100644 --- a/src/engine/execute.js +++ b/src/engine/execute.js @@ -8,7 +8,11 @@ const {Map} = require('immutable'); * @return {boolean} True if the value appears to be a Promise. */ const isPromise = function (value) { - return value && value.then && typeof value.then === 'function'; + return ( + value !== null && + typeof value === 'object' && + typeof value.then === 'function' + ); }; /**