diff --git a/bin/elementexplorer.js b/bin/elementexplorer.js index ec7eeb712..c4377d18e 100755 --- a/bin/elementexplorer.js +++ b/bin/elementexplorer.js @@ -80,7 +80,7 @@ var flowEval = function(code, context, file, callback) { process.domain.emit('error', vmErr); process.domain.exit(); } - return result; + return webdriver.promise.fulfilled(result); }).then(function(res) { if (!vmErr) { callback(null, res);