File tree 2 files changed +6
-9
lines changed
packages/svelte/tests/validator/samples/global-event-reference
2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 5
5
<button {onclick }></button >
6
6
<button onclick ={onclick }></button >
7
7
8
- <button {onTypeScriptWillCatchThis }></button >
9
- <button onTypeScriptWillCatchThis ={onTypeScriptWillCatchThis }></button >
10
-
11
8
<button {onkeydown }></button >
12
9
<button onkeydown ={onkeydown }></button >
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"code" : " global-event-reference" ,
4
- "message" : " You are referencing the global property window .onkeydown. Did you forget to declare a variable with that name?" ,
4
+ "message" : " You are referencing globalThis .onkeydown. Did you forget to declare a variable with that name?" ,
5
5
"start" : {
6
6
"column" : 8 ,
7
- "line" : 11
7
+ "line" : 8
8
8
},
9
9
"end" : {
10
10
"column" : 19 ,
11
- "line" : 11
11
+ "line" : 8
12
12
}
13
13
},
14
14
{
15
15
"code" : " global-event-reference" ,
16
- "message" : " You are referencing the global property window .onkeydown. Did you forget to declare a variable with that name?" ,
16
+ "message" : " You are referencing globalThis .onkeydown. Did you forget to declare a variable with that name?" ,
17
17
"start" : {
18
18
"column" : 8 ,
19
- "line" : 12
19
+ "line" : 9
20
20
},
21
21
"end" : {
22
22
"column" : 29 ,
23
- "line" : 12
23
+ "line" : 9
24
24
}
25
25
}
26
26
]
You can’t perform that action at this time.
0 commit comments