mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-18 16:57:27 +00:00
test: tighten prototype key matching
This commit is contained in:
@@ -7,7 +7,7 @@ describe("isBlockedObjectKey", () => {
|
||||
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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user