Skip to content

Commit 1cb189c

Browse files
committed
fix: invalid factor is not a TypeError.
1 parent 24bef3d commit 1cb189c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dynamicBuffer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class DynamicBuffer {
9393
this.factor = options?.factor || this.DefaultResizeFactor;
9494

9595
if (this.factor <= 0 || Number.isNaN(this.factor)) {
96-
throw new TypeError('Invalid factor');
96+
throw new Error('Invalid factor');
9797
}
9898

9999
if (this.size > 0) {

0 commit comments

Comments
 (0)