Skip to content
Browse files

Convention

  • Loading branch information...
1 parent d3453e9 commit c199b753fc5a7d270f5618c05cb41aad7fd87ea3 @refack refack committed Aug 4, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/promise.js
View
2 lib/promise.js
@@ -120,7 +120,7 @@ Promise.prototype.reject = function (reason) {
*/
Promise.prototype.resolve = function (err) {
if (err) return this.reject(err);
- return this.fulfill.apply(this, Array.prototype.slice.call(arguments, 1));
+ return this.fulfill.apply(this, toArray(arguments, 1));
};
/**

0 comments on commit c199b75

Please sign in to comment.
Something went wrong with that request. Please try again.