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>
This commit is contained in:
Cohee 2024-10-02 01:53:03 +03:00 committed by GitHub
parent c94c06ed4d
commit 68c87f7e7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -213,6 +213,7 @@ export class ToolManager {
static #applyToolCallDelta(target, delta) {
for (const key in delta) {
if (!delta.hasOwnProperty(key)) continue;
if (key === "__proto__" || key === "constructor") continue;
const deltaValue = delta[key];
const targetValue = target[key];