mirror of https://github.com/sveltejs/svelte
warn on template references to global variables (#2295)
parent
fa79a72348
commit
ecd7c6e9aa
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
console.log(potato);
|
||||
</script>
|
||||
|
||||
<p>{potato}</p>
|
@ -0,0 +1,15 @@
|
||||
[{
|
||||
"code": "missing-declaration",
|
||||
"message": "'potato' is not defined",
|
||||
"pos": 46,
|
||||
"start": {
|
||||
"line": 5,
|
||||
"column": 4,
|
||||
"character": 46
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 10,
|
||||
"character": 52
|
||||
}
|
||||
}]
|
Loading…
Reference in new issue