mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
lib: fix typo idenity => identity
PR-URL: https://github.com/nodejs/node/pull/63112 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Aviv Keller <me@aviv.sh>
This commit is contained in:
1 parent
460329e886
commit
3acadae676
1 file changed
+1
-1
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user