buffer: also alias BigUInt methods · nodejs/node@6ee800f · GitHub
Skip to content

Commit 6ee800f

Browse files
committed
buffer: also alias BigUInt methods
These were overlooked in 5864fca because of the extra `Big` in the name. :) Refs: #34729 PR-URL: #34960 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 139442c commit 6ee800f

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

doc/api/buffer.md

Lines changed: 16 additions & 0 deletions

lib/internal/buffer.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -951,10 +951,14 @@ class FastBuffer extends Uint8Array {}
951951
function addBufferPrototypeMethods(proto) {
952952
proto.readBigUInt64LE = readBigUInt64LE,
953953
proto.readBigUInt64BE = readBigUInt64BE,
954+
proto.readBigUint64LE = readBigUInt64LE,
955+
proto.readBigUint64BE = readBigUInt64BE,
954956
proto.readBigInt64LE = readBigInt64LE,
955957
proto.readBigInt64BE = readBigInt64BE,
956958
proto.writeBigUInt64LE = writeBigUInt64LE,
957959
proto.writeBigUInt64BE = writeBigUInt64BE,
960+
proto.writeBigUint64LE = writeBigUInt64LE,
961+
proto.writeBigUint64BE = writeBigUInt64BE,
958962
proto.writeBigInt64LE = writeBigInt64LE,
959963
proto.writeBigInt64BE = writeBigInt64BE,
960964

test/parallel/test-buffer-writeuint.js

Lines changed: 2 additions & 1 deletion

0 commit comments

Comments
 (0)