diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-02-22 13:36:38 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-02-22 13:37:56 -0400 |
commit | bd58ecd5a73e1cc67b73e3fcb664011a02c06087 (patch) | |
tree | d053865ea592eddec2fbb73fd9f3368ab274d578 /src/data/cacheable-object.js | |
parent | d35275e1312cdc889aede73293afd971274384dc (diff) |
cacheable-object: don't hit superclass finalized status
Also report errors finalizing properly
Diffstat (limited to 'src/data/cacheable-object.js')
-rw-r--r-- | src/data/cacheable-object.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/cacheable-object.js b/src/data/cacheable-object.js index 4b354ef7..087f7825 100644 --- a/src/data/cacheable-object.js +++ b/src/data/cacheable-object.js @@ -37,7 +37,7 @@ export default class CacheableObject { } static finalizeCacheableObjectPrototype() { - if (this[CacheableObject.constructorFinalized]) { + if (Object.hasOwn(this, CacheableObject.constructorFinalized)) { throw new Error(`Constructor ${this.name} already finalized`); } |