1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:58:11 +00:00

LibJS: Add missing spec link to ValidateAndApplyPropertyDescriptor

This commit is contained in:
Idan Horowitz 2021-07-07 01:32:11 +03:00 committed by Linus Groh
parent 99328e1038
commit fff112c8a3

View file

@ -160,7 +160,7 @@ bool is_compatible_property_descriptor(bool extensible, PropertyDescriptor const
return validate_and_apply_property_descriptor(nullptr, {}, extensible, descriptor, current);
}
// 10.1.6.3 ValidateAndApplyPropertyDescriptor ( O, P, extensible, Desc, current ),
// 10.1.6.3 ValidateAndApplyPropertyDescriptor ( O, P, extensible, Desc, current ), https://tc39.es/ecma262/#sec-validateandapplypropertydescriptor
bool validate_and_apply_property_descriptor(Object* object, PropertyName const& property_name, bool extensible, PropertyDescriptor const& descriptor, Optional<PropertyDescriptor> const& current)
{
// 1. Assert: If O is not undefined, then IsPropertyKey(P) is true.