new Error() to Error()

This commit is contained in:
the-djmaze
2024-02-28 19:46:21 +01:00
parent 4303ee1908
commit 14bee5d3bd
7 changed files with 12 additions and 12 deletions

View File

@@ -5,7 +5,7 @@ export class AbstractCollectionModel extends Array
constructor() {
/*
if (new.target === AbstractCollectionModel) {
throw new Error("Can't instantiate AbstractCollectionModel!");
throw Error("Can't instantiate AbstractCollectionModel!");
}
*/
super();