mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-21 18:42:53 +00:00
JSSpecCompiler: Parse properties list clause title
This commit is contained in:
parent
ec16556fea
commit
3077e516a2
Notes:
sideshowbarker
2024-07-17 18:08:55 +09:00
Author: https://github.com/DanShaders
Commit: 3077e516a2
Pull-request: https://github.com/SerenityOS/serenity/pull/23647
Reviewed-by: https://github.com/ADKaster ✅
4 changed files with 68 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue