diff --git a/lib/internal/bootstrap/node.js b/lib/internal/bootstrap/node.js index 060593084ce27c..aeb330966c42e4 100644 --- a/lib/internal/bootstrap/node.js +++ b/lib/internal/bootstrap/node.js @@ -192,7 +192,9 @@ if (!config.noBrowserGlobals) { // https://url.spec.whatwg.org/#urlsearchparams exposeInterface(global, 'URLSearchParams', URLSearchParams); - const { TextEncoder, TextDecoder } = NativeModule.require('util'); + const { + TextEncoder, TextDecoder + } = NativeModule.require('internal/encoding'); // https://encoding.spec.whatwg.org/#textencoder exposeInterface(global, 'TextEncoder', TextEncoder); // https://encoding.spec.whatwg.org/#textdecoder