mirror of https://github.com/sveltejs/svelte
throw error if $ is referenced as global - fixes #3272
parent
4e004fdfa3
commit
4c8f3a296c
@ -0,0 +1,15 @@
|
||||
[{
|
||||
"code": "illegal-global",
|
||||
"message": "The $ sign 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": "The $ sign 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