Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/internal/encoding/single-byte.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const h = (x) => it(ArrayPrototypeFill(new Array(x), r));
/* eslint-disable @stylistic/js/max-len */

// Index tables from https://encoding.spec.whatwg.org/#legacy-single-byte-encodings
// Each table in the spec lists only mapping from byte 0x80 onwards, as below that they are all ASCII and mapped as idenity
// Each table in the spec lists only mapping from byte 0x80 onwards, as below that they are all ASCII and mapped as identity
// Here, 0xfffd (replacement charcode) designates a hole (unmapped offset), as not all encodings map all offsets
// All other numbers are deltas from the last seen mapped value, starting with 0x7f (127, highest ASCII)
// Thus, [0x80, 0x81, , 0x83] is stored as [1, 1, r, 2]
Expand Down
Loading