util: require isNativeError
from internalBinding
PR-URL: https://github.com/nodejs/node/pull/23081 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: John-David Dalton <john.david.dalton@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
parent
5a3623af74
commit
20fab5f5d4
@ -12,9 +12,7 @@ const {
|
||||
arrow_message_private_symbol: kArrowMessagePrivateSymbolIndex,
|
||||
decorated_private_symbol: kDecoratedPrivateSymbolIndex
|
||||
} = internalBinding('util');
|
||||
const {
|
||||
isNativeError
|
||||
} = require('internal/util/types');
|
||||
const { isNativeError } = internalBinding('types');
|
||||
|
||||
const noCrypto = !process.versions.openssl;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user