Skip to content

Commit 6e6e6ca

Browse files
committed
Merge branch 'main' into handle-duplicate-event-spread
2 parents 203462a + 66661ef commit 6e6e6ca

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
@@ -70,7 +70,7 @@ import {
7070
hydrate_block_anchor,
7171
set_current_hydration_fragment
7272
} from './hydration.js';
73-
import { array_from, define_property, get_descriptor, is_array } from './utils.js';
73+
import { array_from, define_property, get_descriptor, get_descriptors, is_array } from './utils.js';
7474
import { is_promise } from '../common.js';
7575
import { bind_transition } from './transitions.js';
7676

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

0 commit comments

Comments
 (0)