Skip to content

Commit 45bfdb6

Browse files
committed
fix: update error messages to accommodate signed integers
1 parent 8429bd3 commit 45bfdb6

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/array/base/with/lib

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/array/base/with/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ function arrayWith( x, index, value ) {
8080
if ( index < 0 ) {
8181
index += x.length;
8282
if ( index < 0 ) {
83-
throw new RangeError( format( 'invalid argument. Index argument is out-of-bounds. Value: `%u`.', index ) );
83+
throw new RangeError( format( 'invalid argument. Index argument is out-of-bounds. Value: `%d`.', index ) );
8484
}
8585
} else if ( index >= x.length ) {
86-
throw new RangeError( format( 'invalid argument. Index argument is out-of-bounds. Value: `%u`.', index ) );
86+
throw new RangeError( format( 'invalid argument. Index argument is out-of-bounds. Value: `%d`.', index ) );
8787
}
8888
out = slice( x, 0, x.length );
8989
set = resolveSetter( out );

0 commit comments

Comments
 (0)