Skip to content

Commit fbc7dba

Browse files
committed
Auto-generated commit
1 parent 6b89cfa commit fbc7dba

File tree

7 files changed

+10
-11
lines changed

7 files changed

+10
-11
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/close_pull_requests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#/
1818

1919
# Workflow name:
20-
name: Close Pull Requests
20+
name: close_pull_requests
2121

2222
# Workflow triggers:
2323
on:

complex128/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ function Complex128Array() {
267267
}
268268
buf = buf[ ITERATOR_SYMBOL ]();
269269
if ( !isFunction( buf.next ) ) {
270-
throw new TypeError( 'invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable.' );
270+
throw new TypeError( format( 'invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.', buf ) );
271271
}
272272
buf = fromIterator( buf );
273273
if ( buf instanceof Error ) {

complex64/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ function Complex64Array() {
267267
}
268268
buf = buf[ ITERATOR_SYMBOL ]();
269269
if ( !isFunction( buf.next ) ) {
270-
throw new TypeError( 'invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable.' );
270+
throw new TypeError( format( 'invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.', buf ) );
271271
}
272272
buf = fromIterator( buf );
273273
if ( buf instanceof Error ) {

datespace/lib/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ var rounders = [ 'floor', 'ceil', 'round' ];
4545
* @param {*} value - value to be validated
4646
* @param {string} name - name to be used in error messages
4747
* @throws {TypeError} value must either be a date string, Date object, Unix timestamp, or JavaScript timestamp
48-
* @throws {Error} numeric date must be either a Unix or Javascript timestamp
48+
* @throws {Error} numeric date must be either a Unix or JavaScript timestamp
4949
* @returns {Date} validated date
5050
*/
5151
function validDate( value, name ) {
@@ -61,7 +61,7 @@ function validDate( value, name ) {
6161
}
6262
if ( type === 'number' ) {
6363
if ( !timestamp.test( value ) ) {
64-
throw new Error( format( 'invalid argument. Numeric %s date must be either a Unix or Javascript timestamp.', name.toLowerCase() ) );
64+
throw new Error( format( 'invalid argument. Numeric %s date must be either a Unix or JavaScript timestamp.', name.toLowerCase() ) );
6565
}
6666
if ( value.toString().length === 10 ) {
6767
value *= 1000; // sec to ms
@@ -152,7 +152,7 @@ function datespace( start, stop, length, options ) {
152152
throw new TypeError( format( 'invalid option. `%s` option must be a string. Option: `%s`.', 'round', opts.round ) );
153153
}
154154
if ( rounders.indexOf( opts.round ) === -1 ) {
155-
throw new Error( format( 'invalid option. `%s` option must be one of [%s].', 'round', rounders.join( ',' ) ) );
155+
throw new Error( format( 'invalid option. `%s` option must be one of the following: "%s".', 'round', rounders.join( '", "' ) ) );
156156
}
157157
}
158158
}

filled-by/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ function filledarrayBy() {
345345
}
346346
arg = arg[ ITERATOR_SYMBOL ]();
347347
if ( !isFunction( arg.next ) ) {
348-
throw new TypeError( 'invalid argument. Must provide a length, typed array, array-like object, or an iterable.' );
348+
throw new TypeError( format( 'invalid argument. Must provide a length, typed array, array-like object, or an iterable. Value: `%s`.', arg ) );
349349
}
350350
return filledArrayIterator( arg, clbk, thisArg );
351351
}
@@ -372,7 +372,7 @@ function filledarrayBy() {
372372
}
373373
arg = arg[ ITERATOR_SYMBOL ]();
374374
if ( !isFunction( arg.next ) ) {
375-
throw new TypeError( 'invalid argument. Must provide a length, typed array, array-like object, or an iterable.' );
375+
throw new TypeError( format( 'invalid argument. Must provide a length, typed array, array-like object, or an iterable. Value: `%s`.', arg ) );
376376
}
377377
arr = new ctor( iterLength( arg ) );
378378
} else {

filled/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ function filledarray() {
221221
}
222222
arg = arg[ ITERATOR_SYMBOL ]();
223223
if ( !isFunction( arg.next ) ) {
224-
throw new TypeError( 'invalid argument. Must provide a length, typed array, array-like object, or an iterable.' );
224+
throw new TypeError( format( 'invalid argument. Must provide a length, typed array, array-like object, or an iterable. Value: `%s`.', arg ) );
225225
}
226226
return filledIterator( arg, value );
227227
}
@@ -251,7 +251,7 @@ function filledarray() {
251251
}
252252
arg = arg[ ITERATOR_SYMBOL ]();
253253
if ( !isFunction( arg.next ) ) {
254-
throw new TypeError( 'invalid argument. Must provide a length, typed array, array-like object, or an iterable.' );
254+
throw new TypeError( format( 'invalid argument. Must provide a length, typed array, array-like object, or an iterable. Value: `%s`.', arg ) );
255255
}
256256
arr = new ctor( iterLength( arg ) );
257257
} else {

0 commit comments

Comments
 (0)