fix: dupe check
This commit is contained in:
parent
c5142e4e55
commit
196997d0a8
|
@ -17,7 +17,7 @@ export default function PropertyMixin(key, meta = {}) {
|
||||||
}
|
}
|
||||||
return (Superclass) => {
|
return (Superclass) => {
|
||||||
// Sanity check.
|
// Sanity check.
|
||||||
if (Superclass.prototype[key]) {
|
if (key in Superclass.prototype) {
|
||||||
throw new SyntaxError(`redeclaration of Avocado property ${key}`);
|
throw new SyntaxError(`redeclaration of Avocado property ${key}`);
|
||||||
}
|
}
|
||||||
// Handle defaults.
|
// Handle defaults.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user