mirror of https://github.com/sveltejs/svelte
parent
e74341a227
commit
19f6abb81d
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: more precise `validate_dynamic_component`
|
||||
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
let { prop } = $props();
|
||||
</script>
|
||||
|
||||
{prop}
|
||||
@ -0,0 +1,9 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
expect_unhandled_rejections: true,
|
||||
error: 'is not a function',
|
||||
compileOptions: {
|
||||
dev: true
|
||||
}
|
||||
});
|
||||
@ -0,0 +1,9 @@
|
||||
<script>
|
||||
import A from "./A.svelte";
|
||||
</script>
|
||||
|
||||
{#snippet snip(comp, func)}
|
||||
<svelte:component this={comp} prop={func(10)}></svelte:component>
|
||||
{/snippet}
|
||||
|
||||
{@render snip(A)}
|
||||
Loading…
Reference in new issue