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

@ -22,7 +22,7 @@ export class AbstractModel {
constructor() {
/*
if (new.target === AbstractModel) {
throw new Error("Can't instantiate AbstractModel!");
throw Error("Can't instantiate AbstractModel!");
}
*/
Object.defineProperty(this, 'disposables', {value: []});