From f9a169380caebf4eb061e1bd41b2b3be7d8e9d06 Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Mon, 13 Sep 2021 21:44:18 +0300 Subject: [PATCH] LibWeb: Consume the extra whitespace in stringifier attributes --- Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp index ffe3f64c11..392529ed6b 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp @@ -337,12 +337,14 @@ static OwnPtr parse_interface(StringView filename, StringView const& auto parse_stringifier = [&](HashMap& extended_attributes) { assert_string("stringifier"); + consume_whitespace(); interface->has_stringifier = true; if (lexer.next_is("readonly") || lexer.next_is("attribute")) { parse_attribute(extended_attributes); interface->stringifier_attribute = interface->attributes.last().name; + } else { + assert_specific(';'); } - assert_specific(';'); }; for (;;) {