mirror of https://github.com/sveltejs/svelte
disallow bindings to global variables (#2295)
parent
d637211e3e
commit
fa79a72348
@ -0,0 +1,15 @@
|
||||
[{
|
||||
"code": "binding-undeclared",
|
||||
"message": "foo is not declared",
|
||||
"pos": 58,
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 19,
|
||||
"character": 58
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 22,
|
||||
"character": 61
|
||||
}
|
||||
}]
|
@ -0,0 +1,4 @@
|
||||
<script>
|
||||
console.log(foo);
|
||||
</script>
|
||||
<input bind:value={foo}>
|
Loading…
Reference in new issue