File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Ori
8000
ginal file line number Diff line number Diff line change 22
22
23
23
var isFunction = require ( '@stdlib/assert-is-function' ) ;
24
24
var hasFunctionNameSupport = require ( '@stdlib/assert-has-function-name-support' ) ;
25
- var format = require ( '@stdlib/string-format ' ) ;
25
+ var format = require ( '@stdlib/error-tools-fmtprodmsg ' ) ;
26
26
var RE = require ( '@stdlib/regexp-function-name' ) . REGEXP ;
27
27
28
28
@@ -59,7 +59,7 @@ var isFunctionNameSupported = hasFunctionNameSupport();
59
59
function functionName ( fcn ) {
60
60
// TODO: add support for generator functions?
61
61
if ( isFunction ( fcn ) === false ) {
62
- throw new TypeError ( format ( 'invalid argument. Must provide a function. Value: `%s`. ' , fcn ) ) ;
62
+ throw new TypeError ( format ( '1U53J ' , fcn ) ) ;
63
63
}
64
64
if ( isFunctionNameSupported ) {
65
65
return fcn . name ;
Original file line number Diff line number Diff line change 40
40
"@stdlib/assert-has-function-name-support" : " ^0.2.2" ,
41
41
"@stdlib/assert-is-function" : " ^0.2.2" ,
42
42
"@stdlib/regexp-function-name" : " ^0.2.2" ,
43
- "@stdlib/string-format " : " ^0.2.2" ,
43
+ "@stdlib/error-tools-fmtprodmsg " : " ^0.2.2" ,
44
44
"@stdlib/error-tools-fmtprodmsg" : " ^0.2.2"
45
45
},
46
46
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments