diff --git a/lib/internal/bootstrap/node.js b/lib/internal/bootstrap/node.js index 86c4bfd6544..840bb6b785e 100644 --- a/lib/internal/bootstrap/node.js +++ b/lib/internal/bootstrap/node.js @@ -189,7 +189,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