mirror of https://github.com/sveltejs/svelte
parent
1438994bd4
commit
527ddea289
@ -0,0 +1,9 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"code": "invalid-binding",
|
||||||
|
"message": "Cannot bind to a variable declared with {#await ... then} or {:catch} blocks",
|
||||||
|
"pos": 79,
|
||||||
|
"start": { "line": 6, "column": 9, "character": 79 },
|
||||||
|
"end": { "line": 6, "column": 27, "character": 97 }
|
||||||
|
}
|
||||||
|
]
|
@ -0,0 +1,7 @@
|
|||||||
|
<script>
|
||||||
|
let promise = 0;
|
||||||
|
</script>
|
||||||
|
{#await promise}
|
||||||
|
{:catch error}
|
||||||
|
<input bind:value={error} />
|
||||||
|
{/await}
|
@ -0,0 +1,9 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"code": "invalid-binding",
|
||||||
|
"message": "Cannot bind to a variable declared with {#await ... then} or {:catch} blocks",
|
||||||
|
"pos": 78,
|
||||||
|
"start": { "line": 6, "column": 9, "character": 78 },
|
||||||
|
"end": { "line": 6, "column": 19, "character": 88 }
|
||||||
|
}
|
||||||
|
]
|
@ -0,0 +1,7 @@
|
|||||||
|
<script>
|
||||||
|
let promise = 0;
|
||||||
|
</script>
|
||||||
|
{#await promise}
|
||||||
|
{:then value}
|
||||||
|
<input bind:value />
|
||||||
|
{/await}
|
@ -0,0 +1,9 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"code": "invalid-binding",
|
||||||
|
"message": "Cannot bind to a variable declared with {#await ... then} or {:catch} blocks",
|
||||||
|
"pos": 75,
|
||||||
|
"start": { "line": 5, "column": 9, "character": 75 },
|
||||||
|
"end": { "line": 5, "column": 19, "character": 85 }
|
||||||
|
}
|
||||||
|
]
|
@ -0,0 +1,6 @@
|
|||||||
|
<script>
|
||||||
|
let promise = 0;
|
||||||
|
</script>
|
||||||
|
{#await promise then value}
|
||||||
|
<input bind:value />
|
||||||
|
{/await}
|
Loading…
Reference in new issue