mirror of https://github.com/sveltejs/svelte
fix: never deduplicate expressions in templates (#15451)
parent
0abd7f2a7f
commit
76f5ecfdab
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: never deduplicate expressions in templates
|
@ -0,0 +1,8 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
test({ assert, target }) {
|
||||||
|
const [p1, p2] = target.querySelectorAll('p');
|
||||||
|
assert.notEqual(p1.textContent, p2.textContent);
|
||||||
|
}
|
||||||
|
});
|
@ -0,0 +1,6 @@
|
|||||||
|
<script>
|
||||||
|
let { m = 1 } = $props();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<p>{(Math.random() * m).toFixed(10)}</p>
|
||||||
|
<p>{(Math.random() * m).toFixed(10)}</p>
|
Loading…
Reference in new issue