mirror of https://github.com/openclaw/openclaw.git
test: tighten prototype key matching
This commit is contained in:
parent
0146345b88
commit
2351caa9cf
|
|
@ -7,7 +7,7 @@ describe("isBlockedObjectKey", () => {
|
||||||
expect(isBlockedObjectKey(key)).toBe(true);
|
expect(isBlockedObjectKey(key)).toBe(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const key of ["toString", "value", "constructorName"]) {
|
for (const key of ["toString", "value", "constructorName", "__proto__x", "Prototype"]) {
|
||||||
expect(isBlockedObjectKey(key)).toBe(false);
|
expect(isBlockedObjectKey(key)).toBe(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue