Skip to content

Commit

Permalink
Clarify error massage when fn is not a function (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhducit authored and ForbesLindesay committed Jul 27, 2016
1 parent 453f845 commit 06f2400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.js
Expand Up @@ -56,7 +56,7 @@ function Promise(fn) {
throw new TypeError('Promises must be constructed via new');
}
if (typeof fn !== 'function') {
throw new TypeError('not a function');
throw new TypeError('Promise contructor\'s argument not a function');
}
this._deferredState = 0;
this._state = 0;
Expand Down

0 comments on commit 06f2400

Please sign in to comment.