mirror of https://github.com/sveltejs/svelte
fix: ensure nullish expressions render empty text (#12898)
parent
1f99935b99
commit
aa5c4421cf
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: ensure nullish expressions render empty text
|
@ -0,0 +1,5 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
html: '<li></li>'
|
||||||
|
});
|
@ -0,0 +1,4 @@
|
|||||||
|
<script>
|
||||||
|
function fn() {}
|
||||||
|
</script>
|
||||||
|
<li>{fn()}{null && fn()}</li>
|
Loading…
Reference in new issue