JSSpecCompiler: Parse properties list clause title

This commit is contained in:
Dan Klishch 2024-03-08 23:06:32 -05:00 committed by Andrew Kaster
parent ec16556fea
commit 3077e516a2
Notes: sideshowbarker 2024-07-17 18:08:55 +09:00
4 changed files with 68 additions and 1 deletions

View file

@ -26,6 +26,9 @@ NonnullOwnPtr<SpecificationClause> SpecificationClause::create(SpecificationPars
},
[&](OneOf<AbstractOperationDeclaration, AccessorDeclaration, MethodDeclaration> auto const&) {
result = make<SpecificationFunction>(move(specification_clause));
},
[&](ClauseHeader::PropertiesList const&) {
result = make<ObjectProperties>(move(specification_clause));
});
if (!result->post_initialize(element))