diff --git a/test/runtime/samples/store-assignment-updates-property/main.svelte b/test/runtime/samples/store-assignment-updates-property/main.svelte index 16d69e9e0f..c3196a278c 100644 --- a/test/runtime/samples/store-assignment-updates-property/main.svelte +++ b/test/runtime/samples/store-assignment-updates-property/main.svelte @@ -4,13 +4,13 @@ const a = writable({ foo: 1, bar: 2 }); $a.foo = 3; - let b = writable({ foo: 1, bar: 2 }); + const b = writable({ foo: 1, bar: 2 }); $b = { foo: 3 }; function update() { $a.foo = $a.foo + 1; - $b = { foo: $b.foo + 1, qux: 0 }; - } + $b = { foo: $b.foo + 1, qux: 0 }; + }

a: {JSON.stringify($a)}