From 06f2400f21863e347550d15398887a3db081ca72 Mon Sep 17 00:00:00 2001 From: nhducit Date: Wed, 27 Jul 2016 16:33:24 +0700 Subject: [PATCH] Clarify error massage when fn is not a function (#122) --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index 5eb1d4a..476ba99 100644 --- a/src/core.js +++ b/src/core.js @@ -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;