MCPcopy Create free account
hub / github.com/nodejs/node / validateStringOrSymbol

Function validateStringOrSymbol

lib/internal/test_runner/mock/mock.js:985–989  ·  view source on GitHub ↗
(value, name)

Source from the content-addressed store, hash-verified

983}
984
985function validateStringOrSymbol(value, name) {
986 if (typeof value !== 'string' && typeof value !== 'symbol') {
987 throw new ERR_INVALID_ARG_TYPE(name, ['string', 'symbol'], value);
988 }
989}
990
991function validateTimes(value, name) {
992 if (value === Infinity) {

Callers 2

methodMethod · 0.85
propertyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected