mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
buffer: add missing ARG_TYPE(ArrayBuffer) for isUtf8
PR-URL: https://github.com/nodejs/node/pull/52477 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
801edffbf8
commit
3634f9c8fa
@ -1284,7 +1284,7 @@ function isUtf8(input) {
|
||||
return bindingIsUtf8(input);
|
||||
}
|
||||
|
||||
throw new ERR_INVALID_ARG_TYPE('input', ['TypedArray', 'Buffer'], input);
|
||||
throw new ERR_INVALID_ARG_TYPE('input', ['ArrayBuffer', 'Buffer', 'TypedArray'], input);
|
||||
}
|
||||
|
||||
function isAscii(input) {
|
||||
|
Loading…
Reference in New Issue
Block a user