test: tighten prototype key matching

This commit is contained in:
Peter Steinberger 2026-03-14 01:01:27 +00:00
parent 0146345b88
commit 2351caa9cf
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
});