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:
parent
c94c06ed4d
commit
68c87f7e7a
|
@ -213,6 +213,7 @@ export class ToolManager {
|
||||||
static #applyToolCallDelta(target, delta) {
|
static #applyToolCallDelta(target, delta) {
|
||||||
for (const key in delta) {
|
for (const key in delta) {
|
||||||
if (!delta.hasOwnProperty(key)) continue;
|
if (!delta.hasOwnProperty(key)) continue;
|
||||||
|
if (key === "__proto__" || key === "constructor") continue;
|
||||||
|
|
||||||
const deltaValue = delta[key];
|
const deltaValue = delta[key];
|
||||||
const targetValue = target[key];
|
const targetValue = target[key];
|
||||||
|
|
Loading…
Reference in New Issue