We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78f016d commit 94c7333Copy full SHA for 94c7333
1 file changed
fallback/single-byte.js
@@ -35,7 +35,7 @@ export function encodingMapper(encoding) {
35
let map
36
const mapper = (arr, start = 0) => {
37
if (!map) {
38
- map = Uint16Array.from({ length: 256 }, (_, i) => i) // Unicode subset
+ map = new Uint16Array(256).map((_, i) => i) // Unicode subset
39
map.set(Uint16Array.from(codes), 128)
40
}
41
0 commit comments