Describe the bug
Code like this...
<script>
import { setContext } from 'svelte';
await Promise.resolve('hi');
setContext('key', 'value');
</script>
...fails in CSR, because we need to set context before doing any out-of-order rendering. But it doesn't fail in SSR. It should. The relevant test is currently skipped: https://github.com/sveltejs/svelte/pull/17154/files#r2558303462
Reproduction
playground
Logs
System Info
Severity
annoyance