diff options
| author | 2022-07-24 08:51:27 +1000 | |
|---|---|---|
| committer | 2022-07-23 15:51:27 -0700 | |
| commit | 7de90a82b0105cd64fba60ea7c083852aee4fe6b (patch) | |
| tree | c3f61da7c7d73c59e37c86cfd1978fbfe1c0bd67 /src | |
| parent | c412d0069e625dba8fd97750aa677f0897de0fe2 (diff) | |
| download | bun-7de90a82b0105cd64fba60ea7c083852aee4fe6b.tar.gz bun-7de90a82b0105cd64fba60ea7c083852aee4fe6b.tar.zst bun-7de90a82b0105cd64fba60ea7c083852aee4fe6b.zip | |
[Bun.js] support for util.TextEncoder (#844)
* [Bun.js] support for util.TextEncoder
* [Bun.js] test for util.TextEncoder
Diffstat (limited to '')
| -rw-r--r-- | src/node-fallbacks/util.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node-fallbacks/util.js b/src/node-fallbacks/util.js index 4b20b6354..19ccac1d9 100644 --- a/src/node-fallbacks/util.js +++ b/src/node-fallbacks/util.js @@ -1 +1,5 @@ export * from "util"; + +const TextEncoder = globalThis.TextEncoder; + +export { TextEncoder }; |
