diff options
-rw-r--r-- | lib/async.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/async.js b/lib/async.js index 2a4b1e1..1f1e0ef 100644 --- a/lib/async.js +++ b/lib/async.js @@ -1195,7 +1195,7 @@ if (_isObject(result) && typeof result.then === "function") { result.then(function(value) { callback(null, value); - }).catch(function(err) { + })["catch"](function(err) { callback(err.message ? err : new Error(err)); }); } else { |