mirror of https://github.com/sveltejs/svelte
fix: check for falsy values in spread (#11388)
--------- Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com> Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>pull/11539/head
parent
f70c0370be
commit
f219c795f4
@ -0,0 +1,6 @@
|
|||||||
|
<script>
|
||||||
|
$: x = Object.keys($$restProps).length;
|
||||||
|
$: y = Object.keys($$props).length;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{x} {y}
|
@ -0,0 +1,5 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
html: '0 0'
|
||||||
|
});
|
@ -0,0 +1,5 @@
|
|||||||
|
<script>
|
||||||
|
import Child from './Child.svelte'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Child {...undefined} />
|
Loading…
Reference in new issue