Skip to content

Commit 5ca2494

Browse files
committed
Use startsWith shim
1 parent 43b94b7 commit 5ca2494

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ createErrorType('ERR_INVALID_ARG_TYPE',
9494

9595
// determiner: 'must be' or 'must not be'
9696
let determiner;
97-
if (typeof expected === 'string' && expected.startsWith('not ')) {
97+
if (typeof expected === 'string' && startsWith(expected, 'not ')) {
9898
determiner = 'must not be';
9999
expected = expected.replace(/^not /, '');
100100
} else {

0 commit comments

Comments
 (0)