Skip to content

Commit 9440dc1

Browse files
lucifer1004mourner
authored andcommitted
fix: can run bench now (#19)
1 parent 9dbd2aa commit 9440dc1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bench.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const N = 1000000;
66
const data = [];
77
for (let i = 0; i < N; i++) data[i] = {value: Math.random()};
88

9-
const q = new TinyQueue(null, compare);
9+
const q = new TinyQueue([], compare);
1010

1111
function compare(a, b) {
1212
return a.value - b.value;

0 commit comments

Comments
 (0)