summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/util/BitField.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/BitField.ts b/src/util/BitField.ts

index 5cccd352..728dc632 100644 --- a/src/util/BitField.ts +++ b/src/util/BitField.ts
@@ -135,7 +135,7 @@ export class BitField { if (Array.isArray(bit)) { // @ts-ignore const resolve = this.constructor?.resolve || this.resolve; - return bit.map((p) => resolve(p)).reduce((prev, p) => BigInt(prev) | BigInt(p), 0n); + return bit.map((p) => resolve.call(this, p)).reduce((prev, p) => BigInt(prev) | BigInt(p), 0n); } if (typeof bit === "string" && typeof FLAGS[bit] !== "undefined") return FLAGS[bit]; throw new RangeError("BITFIELD_INVALID: " + bit);