Skip to content

Commit 631fff8

Browse files
committed
Forgot about the new construction for TypeError
1 parent eeb5a08 commit 631fff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Counter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ class Counter {
295295
constructor (begin, blockSize) {
296296
if (typeof begin === 'undefined') begin = 0;
297297
if (blockSize && blockSize % 32 !== 0) {
298-
throw TypeError('Blocksize for BitMapTree must be a multiple of 32');
298+
throw new TypeError('Blocksize for BitMapTree must be a multiple of 32');
299299
} else {
300300
// JavaScript doesn't yet have 64 bit numbers so we default to 32
301301
blockSize = 32;

0 commit comments

Comments
 (0)