Skip to content

Commit a28a587

Browse files
committed
size: remove useless TextDecoder vars
1 parent c997529 commit a28a587

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

utf16.native.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import * as js from './fallback/utf16.js'
22
import { nativeDecoder, isLE, E_STRING, E_STRICT_UNICODE } from './fallback/_utils.js'
33

4-
const { TextDecoder } = globalThis
5-
64
function checkDecoders() {
75
// Not all barebone engines with TextDecoder support something except utf-8
86
// Also workerd specifically has a broken utf-16le implementation

utf8.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { typedView } from './array.js'
22
import { nativeDecoder, nativeEncoder, E_STRING, E_STRICT_UNICODE } from './fallback/_utils.js'
33
import * as js from './fallback/utf8.auto.js'
44

5-
const { TextDecoder } = globalThis
65
// ignoreBOM: true means that BOM will be left as-is, i.e. will be present in the output
76
// We don't want to strip anything unexpectedly
87
const decoderLoose = nativeDecoder

0 commit comments

Comments
 (0)