Skip to content

Commit 06f2400

Browse files
nhducitForbesLindesay
authored andcommittedJul 27, 2016
Clarify error massage when fn is not a function (#122)
1 parent 453f845 commit 06f2400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function Promise(fn) {
5656
throw new TypeError('Promises must be constructed via new');
5757
}
5858
if (typeof fn !== 'function') {
59-
throw new TypeError('not a function');
59+
throw new TypeError('Promise contructor\'s argument not a function');
6060
}
6161
this._deferredState = 0;
6262
this._state = 0;

0 commit comments

Comments
 (0)
Please sign in to comment.