mirror of https://github.com/sveltejs/svelte
parent
b788b72862
commit
f48001ac63
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"svelte": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: check for invalid bindings on window and document
|
@ -0,0 +1,14 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"code": "bind_invalid_name",
|
||||||
|
"message": "`bind:clientWidth` is not a valid binding. Possible bindings for <svelte:document> are focused, fullscreenElement, visibilityState, this",
|
||||||
|
"start": {
|
||||||
|
"line": 5,
|
||||||
|
"column": 17
|
||||||
|
},
|
||||||
|
"end": {
|
||||||
|
"line": 5,
|
||||||
|
"column": 39
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
@ -0,0 +1,5 @@
|
|||||||
|
<script>
|
||||||
|
let foo;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<svelte:document bind:clientWidth={foo} />
|
@ -0,0 +1,14 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"code": "bind_invalid_name",
|
||||||
|
"message": "`bind:clientWidth` is not a valid binding. Possible bindings for <svelte:window> are focused, innerWidth, innerHeight, outerWidth, outerHeight, scrollX, scrollY, online, devicePixelRatio, this",
|
||||||
|
"start": {
|
||||||
|
"line": 5,
|
||||||
|
"column": 15
|
||||||
|
},
|
||||||
|
"end": {
|
||||||
|
"line": 5,
|
||||||
|
"column": 37
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
@ -0,0 +1,5 @@
|
|||||||
|
<script>
|
||||||
|
let foo;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<svelte:window bind:clientWidth={foo} />
|
Loading…
Reference in new issue