mirror of https://github.com/sveltejs/svelte
Replaces Array.includes() (O(n)) with Set.has() (O(1)) across three sibling paths that were missed when client runes rest_props was updated: - server/index.js:rest_props (called per SSR request) - shared/utils.js:exclude_from_object (called for rest destructuring) - client/reactivity/props.js:legacy_rest_props_handler ($$restProps proxy) No signature changes — arrays are still accepted and converted to Set internally. legacy_rest_props.deleteProperty push() → add() to match. Fixes #18601pull/18654/head
parent
c0987c09f8
commit
8103d62b40
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
perf: use Set for exclude-list membership checks in rest_props, exclude_from_object, and legacy_rest_props
|
||||
Loading…
Reference in new issue