From 169f3f716693eb960d3c38dcde2d94b69ea93982 Mon Sep 17 00:00:00 2001 From: ZYSzys Date: Tue, 19 Mar 2019 13:09:42 +0800 Subject: [PATCH] util: require `isNativeError` from internalBinding PR-URL: https://github.com/nodejs/node/pull/23081 Reviewed-By: Ruben Bridgewater Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Weijia Wang Reviewed-By: Joyee Cheung Reviewed-By: Refael Ackermann Reviewed-By: Denys Otrishko Reviewed-By: John-David Dalton Reviewed-By: Anna Henningsen --- lib/internal/util.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/internal/util.js b/lib/internal/util.js index b3fdff27627fa8..bb2a101c4e8648 100644 --- a/lib/internal/util.js +++ b/lib/internal/util.js @@ -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;