mirror of https://github.com/sveltejs/svelte
fix: correctly validate `undefined` snippet params with default value (#15750)
* fix: correctly validate `undefined` snippet params with default value * use arguments * unused * drive-by --------- Co-authored-by: Rich Harris <rich.harris@vercel.com>pull/15751/head
parent
3d6da41b1d
commit
69a427518d
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: correctly validate `undefined` snippet params with default value
|
@ -0,0 +1,5 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: `<p>default</p>`
|
||||
});
|
@ -0,0 +1,5 @@
|
||||
{#snippet test(param = "default")}
|
||||
<p>{param}</p>
|
||||
{/snippet}
|
||||
|
||||
{@render test()}
|
Loading…
Reference in new issue