From 196997d0a848621999cfa77673b24b65b972d581 Mon Sep 17 00:00:00 2001 From: cha0s Date: Tue, 15 Mar 2022 09:43:25 -0500 Subject: [PATCH] fix: dupe check --- packages/core/src/property.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/property.js b/packages/core/src/property.js index c77032d..c19b4e9 100644 --- a/packages/core/src/property.js +++ b/packages/core/src/property.js @@ -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.