X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpriority-queue.ts;h=93e7b76dbfa8051fd3783f2063460f6c86252753;hb=2efc445b630bfe0b55b843eb3d5c6025115b587c;hp=c613cd2e9ee393589a80950bda985bb7004f35ff;hpb=3a5027122ca6401ae1d755843b20f714c61e3240;p=poolifier.git diff --git a/src/priority-queue.ts b/src/priority-queue.ts index c613cd2e..93e7b76d 100644 --- a/src/priority-queue.ts +++ b/src/priority-queue.ts @@ -40,11 +40,11 @@ export class PriorityQueue { ) { if (!Number.isSafeInteger(bucketSize)) { throw new TypeError( - `Invalid bucket size: '${bucketSize}' is not an integer` + `Invalid bucket size: '${bucketSize.toString()}' is not an integer` ) } if (bucketSize < 0) { - throw new RangeError(`Invalid bucket size: ${bucketSize} < 0`) + throw new RangeError(`Invalid bucket size: ${bucketSize.toString()} < 0`) } this.bucketSize = bucketSize this.head = this.tail = new FixedPriorityQueue(