mirror of https://github.com/sveltejs/svelte
Merge f3bdd99ead into 020242d6be
commit
2274716fde
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: don't let `Object.prototype` members of a spread object shadow props like `toString`
|
||||
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
let { toString, constructor: ctor } = $props();
|
||||
</script>
|
||||
|
||||
<p>{toString} {ctor}</p>
|
||||
@ -0,0 +1,5 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: `<p>a b</p>`
|
||||
});
|
||||
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
import Child from './Child.svelte';
|
||||
|
||||
const rest = { foo: 1 };
|
||||
</script>
|
||||
|
||||
<Child toString="a" constructor="b" {...rest} />
|
||||
Loading…
Reference in new issue