chore: use internal get_descriptors helper

pull/9389/head
Rich Harris 3 years ago
parent 304a29e1cc
commit 5402a2a227

@ -0,0 +1,5 @@
---
'svelte': patch
---
chore: use internal get_descriptors helper

@ -2810,7 +2810,7 @@ function get_setters(element) {
/** @type {string[]} */
const setters = [];
// @ts-expect-error
const descriptors = Object.getOwnPropertyDescriptors(element.__proto__);
const descriptors = get_descriptors(element.__proto__);
for (const key in descriptors) {
if (descriptors[key].set && !always_set_through_set_attribute.includes(key)) {
setters.push(key);

Loading…
Cancel
Save