Commit ea807a7
fix: validate worker action with Map.has and a function check
Follow CodeQL's recommended pattern for js/unvalidated-dynamic-method-call:
check the name with Map.prototype.has and verify the handler is a
function before calling it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent d1d79da commit ea807a7
2 files changed
Lines changed: 4 additions & 2 deletions
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
| 127 | + | |
127 | 128 | | |
128 | | - | |
| 129 | + | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
| |||
0 commit comments