Skip to content

Commit 66661ef

Browse files
authored
chore: use internal get_descriptors helper (#9389)
* chore: use internal get_descriptors helper * tweak changeset * fix bad merge --------- Co-authored-by: Rich Harris <[email protected]>
1 parent 7ab03ae commit 66661ef

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/brave-walls-destroy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
chore: use internal `get_descriptors` helper

packages/svelte/src/internal/client/render.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ import {
6868
hydrate_block_anchor,
6969
set_current_hydration_fragment
7070
} from './hydration.js';
71-
import { array_from, define_property, get_descriptor, is_array } from './utils.js';
71+
import { array_from, define_property, get_descriptor, get_descriptors, is_array } from './utils.js';
7272
import { is_promise } from '../common.js';
7373
import { bind_transition } from './transitions.js';
7474

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

0 commit comments

Comments
 (0)