Lint about console calls in rustdoc JS

This commit is contained in:
Guillaume Gomez 2025-06-17 11:50:03 +02:00
parent 0cbc076438
commit 2bbc974bed
2 changed files with 2 additions and 0 deletions

View file

@ -91,5 +91,6 @@ module.exports = {
"no-script-url": "error",
"no-sequences": "error",
"no-div-regex": "error",
"no-console": "error",
}
};

View file

@ -1133,6 +1133,7 @@ class RoaringBitmap {
}
for (let j = 0; j < size; ++j) {
if (offsets && offsets[j] !== i) {
// eslint-disable-next-line no-console
console.log(this.containers);
throw new Error(`corrupt bitmap ${j}: ${i} / ${offsets[j]}`);
}