gh-12624
Rich Harris 7 months ago
parent 6e08f0cb53
commit 58f00292a0

@ -146,7 +146,7 @@ export function warn_if_attribute(element, name) {
*/ */
export function warn_if_property(element, name) { export function warn_if_property(element, name) {
const attributes = /** @type {string} */ ( const attributes = /** @type {string} */ (
/** @type {any} */ (element.constructor).observedAttributes /** @type {any} */ (element.constructor).observedAttributes ?? []
); );
if (get_setters(element).includes(name) && !attributes.includes(name)) { if (get_setters(element).includes(name) && !attributes.includes(name)) {

Loading…
Cancel
Save