Commit f529f73
committed
lib: brand check event handler property receivers
Event handler properties defined by `defineEventHandler` should check
if the receiver is a valid `EventTarget`.
PR-URL: #44483
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent ecd5de0 commit f529f73Copy full SHA for f529f73
File tree
Expand file treeCollapse file tree
2 files changed
+47
-27
lines changedOpen diff view settings
Filter options
- lib/internal
Expand file treeCollapse file tree
2 files changed
+47
-27
lines changedOpen diff view settings
Collapse file
lib/internal/event_target.js
Copy file name to clipboardExpand all lines: lib/internal/event_target.js+39-26Lines changed: 39 additions & 26 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
34 | 34 | |
35 | 35 | |
36 | 36 | |
37 | | - |
| 37 | + |
38 | 38 | |
39 | 39 | |
40 | 40 | |
| ||
492 | 492 | |
493 | 493 | |
494 | 494 | |
| 495 | + |
495 | 496 | |
496 | 497 | |
497 | 498 | |
| ||
1021 | 1022 | |
1022 | 1023 | |
1023 | 1024 | |
1024 | | - |
| 1025 | + |
| 1026 | + |
| 1027 | + |
| 1028 | + |
| 1029 | + |
| 1030 | + |
1025 | 1031 | |
1026 | | - |
1027 | | - |
1028 | | - |
1029 | | - |
1030 | | - |
1031 | | - |
| 1032 | + |
| 1033 | + |
| 1034 | + |
| 1035 | + |
| 1036 | + |
| 1037 | + |
| 1038 | + |
| 1039 | + |
| 1040 | + |
| 1041 | + |
| 1042 | + |
1032 | 1043 | |
1033 | | - |
1034 | | - |
1035 | | - |
1036 | | - |
1037 | | - |
1038 | | - |
1039 | | - |
1040 | | - |
1041 | | - |
1042 | | - |
1043 | | - |
1044 | | - |
1045 | | - |
1046 | | - |
1047 | | - |
1048 | | - |
| 1044 | + |
| 1045 | + |
| 1046 | + |
| 1047 | + |
| 1048 | + |
1049 | 1049 | |
1050 | | - |
1051 | | - |
| 1050 | + |
| 1051 | + |
| 1052 | + |
| 1053 | + |
| 1054 | + |
| 1055 | + |
| 1056 | + |
| 1057 | + |
| 1058 | + |
| 1059 | + |
| 1060 | + |
| 1061 | + |
| 1062 | + |
| 1063 | + |
| 1064 | + |
1052 | 1065 | |
1053 | 1066 | |
1054 | 1067 | |
|
Collapse file
+8-1Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
418 | 418 | |
419 | 419 | |
420 | 420 | |
| 421 | + |
| 422 | + |
| 423 | + |
| 424 | + |
| 425 | + |
| 426 | + |
421 | 427 | |
422 | 428 | |
423 | 429 | |
| ||
440 | 446 | |
441 | 447 | |
442 | 448 | |
443 | | - |
| 449 | + |
| 450 | + |
444 | 451 | |
0 commit comments