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 eeb5a08 commit 631fff8Copy full SHA for 631fff8
lib/Counter.js
@@ -295,7 +295,7 @@ class Counter {
295
constructor (begin, blockSize) {
296
if (typeof begin === 'undefined') begin = 0;
297
if (blockSize && blockSize % 32 !== 0) {
298
- throw TypeError('Blocksize for BitMapTree must be a multiple of 32');
+ throw new TypeError('Blocksize for BitMapTree must be a multiple of 32');
299
} else {
300
// JavaScript doesn't yet have 64 bit numbers so we default to 32
301
blockSize = 32;
0 commit comments