You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
lib: inconsistent initial of expected in TypeError[ERR_INVALID_ARG_TYPE] #16383
The initials of expected in TypeError[ERR_INVALID_ARG_TYPE] are inconsistent. Some codes are using uppercase for primitive types and some are using lowercase:
Activity
addaleax commentedon Oct 22, 2017
Lowercase
arrayseems like a bug here, thanks for catching that!Generally, we should try to do the same thing the documentation does; use lowercase for primitive types, uppercase for classes.
starkwang commentedon Oct 22, 2017
@addaleax What about
function? It is not primitive type but we are using'function'.lib: improve the usage of TypeError[INVALID_ARG_TYPE]
lib: improve the usage of TypeError[INVALID_ARG_TYPE]