We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24bef3d commit 1cb189cCopy full SHA for 1cb189c
src/dynamicBuffer.ts
@@ -93,7 +93,7 @@ export class DynamicBuffer {
93
this.factor = options?.factor || this.DefaultResizeFactor;
94
95
if (this.factor <= 0 || Number.isNaN(this.factor)) {
96
- throw new TypeError('Invalid factor');
+ throw new Error('Invalid factor');
97
}
98
99
if (this.size > 0) {
0 commit comments