We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
internal/encoding
1 parent 7ac904e commit 4562697Copy full SHA for 4562697
lib/internal/bootstrap/node.js
@@ -189,7 +189,9 @@ if (!config.noBrowserGlobals) {
189
// https://url.spec.whatwg.org/#urlsearchparams
190
exposeInterface(global, 'URLSearchParams', URLSearchParams);
191
192
- const { TextEncoder, TextDecoder } = NativeModule.require('util');
+ const {
193
+ TextEncoder, TextDecoder
194
+ } = NativeModule.require('internal/encoding');
195
// https://encoding.spec.whatwg.org/#textencoder
196
exposeInterface(global, 'TextEncoder', TextEncoder);
197
// https://encoding.spec.whatwg.org/#textdecoder
0 commit comments