Skip to content

Commit eeaa21b

Browse files
committed
Prototype Pollution Guards on Diff/Patch
1 parent 590ba36 commit eeaa21b

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/guard/guard.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,6 @@ export function TakeLeft<T, True extends (left: T, right: T[]) => unknown, False
189189
// --------------------------------------------------------------------------
190190
// Object
191191
// --------------------------------------------------------------------------
192-
// --------------------------------------------------------------------------
193-
// Object
194-
// --------------------------------------------------------------------------
195192
/** Returns true if the PropertyKey appears unsafe (prototype-pollution). */
196193
export function IsUnsafePropertyKey(key: PropertyKey): boolean {
197194
return IsEqual(key, '__proto__') || IsEqual(key, 'constructor') || IsEqual(key, 'prototype')

0 commit comments

Comments
 (0)