Fix code scanning alert no. 231: Prototype-polluting function Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed| @@ -213,6 +213,7 @@ export class ToolManager { | |||
| 213 | static #applyToolCallDelta(target, delta) { | 213 | static #applyToolCallDelta(target, delta) { |
| 214 | for (const key in delta) { | 214 | for (const key in delta) { |
| 215 | if (!delta.hasOwnProperty(key)) continue; | 215 | if (!delta.hasOwnProperty(key)) continue; |
| 216 | if (key === "__proto__" || key === "constructor") continue; | ||
| 216 | 217 | ||
| 217 | const deltaValue = delta[key]; | 218 | const deltaValue = delta[key]; |
| 218 | const targetValue = target[key]; | 219 | const targetValue = target[key]; |