This commit is contained in:
Pieter Vander Vennet 2024-11-26 19:23:41 +01:00
parent afce4cb5ba
commit 540e2c227e
2 changed files with 11 additions and 3 deletions

View file

@ -18,6 +18,10 @@ export class And extends TagsFilter {
console.error("Assertion failed: invalid subtags:", and)
throw "Assertion failed: invalid subtags found"
}
if (and.some((p) => p === undefined)) {
console.error("Assertion failed: invalid subtags:", and)
throw "Assertion failed: invalid subtags found (undefined)"
}
}
public static construct(and: ReadonlyArray<TagsFilter>): TagsFilter