mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:17:44 +00:00
LibJS: Convert to_property_descriptor() to ThrowCompletionOr
Also add spec step comments to it while we're here.
This commit is contained in:
parent
2f42675ebd
commit
d7d73f9100
6 changed files with 85 additions and 46 deletions
|
@ -15,7 +15,7 @@ namespace JS {
|
|||
// 6.2.5 The Property Descriptor Specification Type, https://tc39.es/ecma262/#sec-property-descriptor-specification-type
|
||||
|
||||
Value from_property_descriptor(GlobalObject&, Optional<PropertyDescriptor> const&);
|
||||
PropertyDescriptor to_property_descriptor(GlobalObject&, Value);
|
||||
ThrowCompletionOr<PropertyDescriptor> to_property_descriptor(GlobalObject&, Value);
|
||||
|
||||
class PropertyDescriptor {
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue