mirror of https://github.com/sveltejs/svelte
parent
0e709e3fec
commit
8ebbb3c7bc
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: preserve symbols when creating derived rest properties
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
html: `<p>42</p>`
|
||||||
|
});
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
<script>
|
||||||
|
const symbol = Symbol();
|
||||||
|
|
||||||
|
let a = { [symbol]: 42 };
|
||||||
|
let { ...b } = $derived(a);
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<p>{b[symbol]}</p>
|
||||||
Loading…
Reference in new issue