File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ var setReadWriteAccessor = require( '@stdlib/utils-define-nonenumerable-read-wri
26
26
var setReadOnly = require ( '@stdlib/utils-define-nonenumerable-read-only-property' ) ;
27
27
var accessors = require ( '@stdlib/array-base-accessors' ) ;
28
28
var isCollection = require ( '@stdlib/assert-is-collection' ) ;
29
- var format = require ( '@stdlib/string-format ' ) ;
29
+ var format = require ( '@stdlib/error-tools-fmtprodmsg ' ) ;
30
30
31
31
32
32
// FUNCTIONS //
@@ -75,7 +75,7 @@ function AccessorArray( arr ) {
75
75
return new AccessorArray ( arr ) ;
76
76
}
77
77
if ( ! isCollection ( arr ) ) {
78
- throw new TypeError ( format ( 'invalid argument. Must provide an array-like object. Value: `%s`. ' , arr ) ) ;
78
+ throw new TypeError ( format ( '1Yn2u ' , arr ) ) ;
79
79
}
80
80
o = accessors ( arr ) ;
81
81
this . _buffer = arr ;
Original file line number Diff line number Diff line change 39
39
"dependencies" : {
40
40
"@stdlib/array-base-accessors" : " ^0.2.1" ,
41
41
"@stdlib/assert-is-collection" : " ^0.2.1" ,
42
- "@stdlib/string-format " : " ^0.2.1" ,
42
+ "@stdlib/error-tools-fmtprodmsg " : " ^0.2.1" ,
43
43
"@stdlib/types" : " ^0.3.2" ,
44
44
"@stdlib/utils-define-nonenumerable-read-only-property" : " ^0.2.1" ,
45
45
"@stdlib/utils-define-nonenumerable-read-write-accessor" : " ^0.2.1" ,
You can’t perform that action at this time.
0 commit comments