mirror of https://github.com/sveltejs/svelte
Merge pull request #3348 from sveltejs/gh-3272
throw error if $ is referenced as globalpull/3358/head
commit
e41a4846c3
@ -0,0 +1,15 @@
|
||||
[{
|
||||
"code": "illegal-global",
|
||||
"message": "$$billsyall is an illegal variable name",
|
||||
"pos": 1,
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 1,
|
||||
"character": 1
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 12,
|
||||
"character": 12
|
||||
}
|
||||
}]
|
@ -0,0 +1 @@
|
||||
{$$billsyall}
|
@ -0,0 +1,15 @@
|
||||
[{
|
||||
"code": "illegal-global",
|
||||
"message": "$$billsyall is an illegal variable name",
|
||||
"pos": 10,
|
||||
"start": {
|
||||
"line": 2,
|
||||
"column": 1,
|
||||
"character": 10
|
||||
},
|
||||
"end": {
|
||||
"line": 2,
|
||||
"column": 12,
|
||||
"character": 21
|
||||
}
|
||||
}]
|
@ -0,0 +1,3 @@
|
||||
<script>
|
||||
$$billsyall;
|
||||
</script>
|
@ -0,0 +1,15 @@
|
||||
[{
|
||||
"code": "illegal-global",
|
||||
"message": "$ is an illegal variable name",
|
||||
"pos": 1,
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 1,
|
||||
"character": 1
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 2,
|
||||
"character": 2
|
||||
}
|
||||
}]
|
@ -0,0 +1 @@
|
||||
{$}
|
@ -0,0 +1,15 @@
|
||||
[{
|
||||
"code": "illegal-global",
|
||||
"message": "$ is an illegal variable name",
|
||||
"pos": 10,
|
||||
"start": {
|
||||
"line": 2,
|
||||
"column": 1,
|
||||
"character": 10
|
||||
},
|
||||
"end": {
|
||||
"line": 2,
|
||||
"column": 2,
|
||||
"character": 11
|
||||
}
|
||||
}]
|
@ -0,0 +1,3 @@
|
||||
<script>
|
||||
$;
|
||||
</script>
|
Loading…
Reference in new issue