mirror of https://github.com/sveltejs/svelte
parent
4f9a260ab1
commit
372987e231
@ -0,0 +1,6 @@
|
|||||||
|
export default {
|
||||||
|
html: `
|
||||||
|
<div>hello undefined</div>
|
||||||
|
<div>hello bar2</div>
|
||||||
|
`
|
||||||
|
};
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
<script>
|
||||||
|
const hoge = {};
|
||||||
|
const { foo: { bar } = {} } = hoge;
|
||||||
|
|
||||||
|
|
||||||
|
const hoge2 = {};
|
||||||
|
const { foo2: { bar2 } = { bar2: "bar2" } } = hoge2;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div>hello {bar}</div>
|
||||||
|
<div>hello {bar2}</div>
|
||||||
Loading…
Reference in new issue