mirror of https://github.com/sveltejs/svelte
coerce tag values to string - fixes #2290
parent
bb9a9efec2
commit
655701ef08
@ -0,0 +1,10 @@
|
||||
export default {
|
||||
html: `1-1`,
|
||||
|
||||
test: ({ assert, component, target }) => {
|
||||
component.a.b[0] = 2;
|
||||
component.a = component.a;
|
||||
|
||||
assert.htmlEqual(target.innerHTML, `2-2`);
|
||||
}
|
||||
};
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
export let a = { b: [1] };
|
||||
|
||||
const identity = x => x;
|
||||
</script>
|
||||
|
||||
{a.b}-{identity(a.b)}
|
Loading…
Reference in new issue