fix: dupe check

This commit is contained in:
cha0s 2022-03-15 09:43:25 -05:00
parent c5142e4e55
commit 196997d0a8

View File

@ -17,7 +17,7 @@ export default function PropertyMixin(key, meta = {}) {
}
return (Superclass) => {
// Sanity check.
if (Superclass.prototype[key]) {
if (key in Superclass.prototype) {
throw new SyntaxError(`redeclaration of Avocado property ${key}`);
}
// Handle defaults.