Skip to content

Commit 40192f9

Browse files
committed
Finish dropping primitive from error messages
1 parent 33538a9 commit 40192f9

File tree

116 files changed

+519
-525
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+519
-525
lines changed

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-blockquote-indentation/test/fixtures/valid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ test = {
169169
'*/',
170170
'function removeUTF8BOM( str ) {',
171171
' if ( !isString( str ) ) {',
172-
' throw new TypeError( \'invalid argument. Must provide a string primitive. Value: `\' + str + \'`.\' );',
172+
' throw new TypeError( \'invalid argument. Must provide a string. Value: `\' + str + \'`.\' );',
173173
' }',
174174
' if ( str.charCodeAt( 0 ) === BOM ) {',
175175
' return str.slice( 1 );',

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-checkbox-character-style/test/fixtures/valid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ test = {
169169
'*/',
170170
'function removeUTF8BOM( str ) {',
171171
' if ( !isString( str ) ) {',
172-
' throw new TypeError( \'invalid argument. Must provide a string primitive. Value: `\' + str + \'`.\' );',
172+
' throw new TypeError( \'invalid argument. Must provide a string. Value: `\' + str + \'`.\' );',
173173
' }',
174174
' if ( str.charCodeAt( 0 ) === BOM ) {',
175175
' return str.slice( 1 );',

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-checkbox-content-indent/test/fixtures/valid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ test = {
169169
'*/',
170170
'function removeUTF8BOM( str ) {',
171171
' if ( !isString( str ) ) {',
172-
' throw new TypeError( \'invalid argument. Must provide a string primitive. Value: `\' + str + \'`.\' );',
172+
' throw new TypeError( \'invalid argument. Must provide a string. Value: `\' + str + \'`.\' );',
173173
' }',
174174
' if ( str.charCodeAt( 0 ) === BOM ) {',
175175
' return str.slice( 1 );',

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-code-block-style/test/fixtures/valid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ test = {
169169
'*/',
170170
'function removeUTF8BOM( str ) {',
171171
' if ( !isString( str ) ) {',
172-
' throw new TypeError( \'invalid argument. Must provide a string primitive. Value: `\' + str + \'`.\' );',
172+
' throw new TypeError( \'invalid argument. Must provide a string. Value: `\' + str + \'`.\' );',
173173
' }',
174174
' if ( str.charCodeAt( 0 ) === BOM ) {',
175175
' return str.slice( 1 );',

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-definition-case/test/fixtures/valid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ test = {
169169
'*/',
170170
'function removeUTF8BOM( str ) {',
171171
' if ( !isString( str ) ) {',
172-
' throw new TypeError( \'invalid argument. Must provide a string primitive. Value: `\' + str + \'`.\' );',
172+
' throw new TypeError( \'invalid argument. Must provide a string. Value: `\' + str + \'`.\' );',
173173
' }',
174174
' if ( str.charCodeAt( 0 ) === BOM ) {',
175175
' return str.slice( 1 );',

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-definition-spacing/test/fixtures/valid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ test = {
169169
'*/',
170170
'function removeUTF8BOM( str ) {',
171171
' if ( !isString( str ) ) {',
172-
' throw new TypeError( \'invalid argument. Must provide a string primitive. Value: `\' + str + \'`.\' );',
172+
' throw new TypeError( \'invalid argument. Must provide a string. Value: `\' + str + \'`.\' );',
173173
' }',
174174
' if ( str.charCodeAt( 0 ) === BOM ) {',
175175
' return str.slice( 1 );',

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-doctest/test/fixtures/invalid.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ test = {
481481
'* Converts a string to lowercase.',
482482
'*',
483483
'* @param {string} str - string to convert',
484-
'* @throws {TypeError} must provide a primitive string',
484+
'* @throws {TypeError} must provide a string',
485485
'* @returns {string} lowercase string',
486486
'*',
487487
'* @example',
@@ -494,14 +494,14 @@ test = {
494494
'*/',
495495
'function lowercase( str ) {',
496496
' if ( typeof str !== \'string\' ) {',
497-
' throw new TypeError( \'invalid argument. Must provide a primitive string. Value: `\'+str+\'`.\' );',
497+
' throw new TypeError( \'invalid argument. Must provide a string. Value: `\'+str+\'`.\' );',
498498
' }',
499499
' return str.toLowerCase();',
500500
'}'
501501
].join( '\n' ),
502502
'errors': [
503503
{
504-
'message': 'Encountered an error while running code: `invalid argument. Must provide a primitive string. Value: `undefined`.`.Did you mean to include a `// throws <TypeError>` annotation instead of `// returns <TypeError>`?',
504+
'message': 'Encountered an error while running code: `invalid argument. Must provide a string. Value: `undefined`.`.Did you mean to include a `// throws <TypeError>` annotation instead of `// returns <TypeError>`?',
505505
'type': null
506506
}
507507
]
@@ -514,7 +514,7 @@ test = {
514514
'* Converts a string to lowercase.',
515515
'*',
516516
'* @param {string} str - string to convert',
517-
'* @throws {TypeError} must provide a primitive string',
517+
'* @throws {TypeError} must provide a string',
518518
'* @returns {string} lowercase string',
519519
'*',
520520
'* @example',
@@ -527,7 +527,7 @@ test = {
527527
'*/',
528528
'function lowercase( str ) {',
529529
' if ( typeof str !== \'string\' ) {',
530-
' throw new TypeError( \'invalid argument. Must provide a primitive string. Value: `\'+str+\'`.\' );',
530+
' throw new TypeError( \'invalid argument. Must provide a string. Value: `\'+str+\'`.\' );',
531531
' }',
532532
' return str.toLowerCase();',
533533
'}'

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-doctest/test/fixtures/valid.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ test = {
539539
'*/',
540540
'function trim( str ) {',
541541
' if ( !isString( str ) ) {',
542-
' throw new TypeError( \'invalid argument. Must provide a string primitive. Value: `\' + str + \'`.\' );',
542+
' throw new TypeError( \'invalid argument. Must provide a string. Value: `\' + str + \'`.\' );',
543543
' }',
544544
' return replace( str, RE, \'$1\' );',
545545
'}',
@@ -591,7 +591,7 @@ test = {
591591
'*/',
592592
'function ltrim( str ) {',
593593
' if ( !isString( str ) ) {',
594-
' throw new TypeError( \'invalid argument. Must provide a string primitive. Value: `\' + str + \'`.\' );',
594+
' throw new TypeError( \'invalid argument. Must provide a string. Value: `\' + str + \'`.\' );',
595595
' }',
596596
' return replace( str, RE, \'\' );',
597597
'}',
@@ -1417,7 +1417,7 @@ test = {
14171417
'* Converts a string to lowercase.',
14181418
'*',
14191419
'* @param {string} str - string to convert',
1420-
'* @throws {TypeError} must provide a primitive string',
1420+
'* @throws {TypeError} must provide a string',
14211421
'* @returns {string} lowercase string',
14221422
'*',
14231423
'* @example',
@@ -1430,7 +1430,7 @@ test = {
14301430
'*/',
14311431
'function lowercase( str ) {',
14321432
' if ( typeof str !== \'string\' ) {',
1433-
' throw new TypeError( \'invalid argument. Must provide a primitive string. Value: `\'+str+\'`.\' );',
1433+
' throw new TypeError( \'invalid argument. Must provide a string. Value: `\'+str+\'`.\' );',
14341434
' }',
14351435
' return str.toLowerCase();',
14361436
'}'

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-emphasis-marker/test/fixtures/valid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ test = {
169169
'*/',
170170
'function removeUTF8BOM( str ) {',
171171
' if ( !isString( str ) ) {',
172-
' throw new TypeError( \'invalid argument. Must provide a string primitive. Value: `\' + str + \'`.\' );',
172+
' throw new TypeError( \'invalid argument. Must provide a string. Value: `\' + str + \'`.\' );',
173173
' }',
174174
' if ( str.charCodeAt( 0 ) === BOM ) {',
175175
' return str.slice( 1 );',

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-fenced-code-flag/test/fixtures/valid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ test = {
169169
'*/',
170170
'function removeUTF8BOM( str ) {',
171171
' if ( !isString( str ) ) {',
172-
' throw new TypeError( \'invalid argument. Must provide a string primitive. Value: `\' + str + \'`.\' );',
172+
' throw new TypeError( \'invalid argument. Must provide a string. Value: `\' + str + \'`.\' );',
173173
' }',
174174
' if ( str.charCodeAt( 0 ) === BOM ) {',
175175
' return str.slice( 1 );',

0 commit comments

Comments
 (0)