mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
lib: expose all type checks from the internal types module
Combine all type checks on the internal types module and do not use the types binding anywhere else anymore. This makes sure all of those checks exist when required. PR-URL: https://github.com/nodejs/node/pull/25149 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com>
This commit is contained in:
8 files changed
+19
-25
No files matched your search
+1
-1
@@ -37,7 +37,6 @@ const {
|
||||
kMaxLength,
|
||||
kStringMaxLength
|
||||
} = internalBinding('buffer');
|
||||
const { isAnyArrayBuffer } = internalBinding('types');
|
||||
const {
|
||||
getOwnNonIndexProperties,
|
||||
propertyFilter: {
|
||||
@@ -52,6 +51,7 @@ const {
|
||||
kIsEncodingSymbol
|
||||
} = require('internal/util');
|
||||
const {
|
||||
isAnyArrayBuffer,
|
||||
isArrayBufferView,
|
||||
isUint8Array
|
||||
} = require('internal/util/types');
|
||||
|
||||
Reference in new issue
Block a user