// NOTE: It is very important that `forbidSpecialProperty` below is wrapped in an array. Otherwise, for the `__proto__` property, it will actually treat the entire rules object as a validatem-special object due to its __proto__ being set directly to an object with the validatem-special marker... We're hacking around this by wrapping it in an array instead, which will not register as such. It's really a hack, though.
@ -21,12 +20,3 @@ let baseChecks = syncpipe(reservedProperties, [
(_)=>fromEntries(_),
(_)=>allowExtraProperties(_)
]);
module.exports=[
baseChecks,
(value)=>{
if(value.__proto__!=null){
returnnewValidationError("Reserved property name __proto__ cannot be used");