We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
internal/encoding
1 parent f2ebf36 commit c43e5b3Copy full SHA for c43e5b3
lib/internal/bootstrap/node.js
@@ -192,7 +192,9 @@ if (!config.noBrowserGlobals) {
192
// https://url.spec.whatwg.org/#urlsearchparams
193
exposeInterface(global, 'URLSearchParams', URLSearchParams);
194
195
- const { TextEncoder, TextDecoder } = NativeModule.require('util');
+ const {
196
+ TextEncoder, TextDecoder
197
+ } = NativeModule.require('internal/encoding');
198
// https://encoding.spec.whatwg.org/#textencoder
199
exposeInterface(global, 'TextEncoder', TextEncoder);
200
// https://encoding.spec.whatwg.org/#textdecoder
0 commit comments