add test for shorthand this

pull/6898/head
baseballyama 4 years ago
parent c5c0dee90e
commit 2858cf582e

@ -0,0 +1,15 @@
[{
"code": "unexpected-reserved-word",
"message": "'this' is a reserved word in JavaScript and cannot be used here",
"start": {
"line": 2,
"column": 18,
"character": 24
},
"end": {
"line": 2,
"column": 18,
"character": 24
},
"pos": 24
}]

@ -0,0 +1,3 @@
<div>
<svelte:element {this}>foo</svelte:element>
</div>
Loading…
Cancel
Save