1 Commits
Author SHA1 Message Date
Neal Beeken dc04bf6761 buffer: make methods work on Uint8Array instances
Removes the reliance on prototype bound methods internally
so that Uint8Arrays can be set as the bound `this` value when calling
the various Buffer methods. Introduces some additional tamper protection
by removing internal reliance on writable properties.

Fixes: https://github.com/nodejs/node/issues/56577
PR-URL: https://github.com/nodejs/node/pull/56578
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2026-01-21 14:51:10 +00:00