Permalink
Browse files

Fixes #971

  • Loading branch information...
petkaantonov committed Jan 23, 2016
1 parent b7a4bf9 commit af57c331eefcfe786f7330b0ad485940fb557b6f
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/promise.js
View
@@ -170,6 +170,7 @@ Promise.is = function (val) {
Promise.fromNode = Promise.fromCallback = function(fn) {
var ret = new Promise(INTERNAL);
ret._captureStackTrace();
var multiArgs = arguments.length > 1 ? !!Object(arguments[1]).multiArgs
: false;
var result = tryCatch(fn)(nodebackForPromise(ret, multiArgs));

0 comments on commit af57c33

Please sign in to comment.