Test update to test two object destrucutring const tags

pull/8418/head
Nguyen Tran 4 years ago
parent a46ad17e8a
commit 2943eefbbf

@ -15,7 +15,7 @@
</script> </script>
{#await promise1 then { length, width, height }} {#await promise1 then { length, width, height }}
{@const { 0: a, 1: b, 2: c } = permutation} {@const { [0]: a, [1]: b, [2]: c } = permutation}
{@const { [`${a}-Dimensions`]: { [c - 1]: first }, [`${b}-Dimensions`]: { [b - 1]: second }, [`${c}-Dimensions`]: { [a - 1]: third } } = calculate(length, width, height) } {@const { [`${a}-Dimensions`]: { [c - 1]: first }, [`${b}-Dimensions`]: { [b - 1]: second }, [`${c}-Dimensions`]: { [a - 1]: third } } = calculate(length, width, height) }
<p>{first}, {second}, {third}</p> <p>{first}, {second}, {third}</p>
{/await} {/await}

Loading…
Cancel
Save