fix: correctly validate `<svelte:component>` with `bind:this` (#12368)

pull/12372/head
Rich Harris 4 months ago committed by GitHub
parent 529db97928
commit 1d8d38c8bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: correctly validate `<svelte:component>` with `bind:this`

@ -56,4 +56,6 @@ export function bind_this(element_or_component = {}, update, get_value, get_part
});
};
});
return element_or_component;
}

@ -12,8 +12,9 @@ function is_void(tag) {
}
/**
* @param {() => any} component_fn
* @returns {any}
* @template Component
* @param {() => Component} component_fn
* @returns {Component}
*/
export function validate_dynamic_component(component_fn) {
try {

Loading…
Cancel
Save