mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-12 09:20:36 +00:00
JSSpecCompiler: Do not frame nodes with < and > when dumping AST
Let's not pretend we are outputting some invalid HTML.
This commit is contained in:
parent
f9d485191d
commit
4578004ad6
Notes:
sideshowbarker
2024-07-17 00:25:35 +09:00
Author: https://github.com/DanShaders Commit: https://github.com/SerenityOS/serenity/commit/4578004ad6 Pull-request: https://github.com/SerenityOS/serenity/pull/21263 Reviewed-by: https://github.com/gmta ✅
1 changed files with 1 additions and 2 deletions
|
@ -23,10 +23,9 @@ void Node::format_tree(StringBuilder& builder)
|
|||
template<typename... Parameters>
|
||||
void Node::dump_node(StringBuilder& builder, AK::CheckedFormatString<Parameters...>&& fmtstr, Parameters const&... parameters)
|
||||
{
|
||||
builder.append("<"sv);
|
||||
AK::VariadicFormatParams<AK::AllowDebugOnlyFormatters::No, Parameters...> variadic_format_params { parameters... };
|
||||
MUST(AK::vformat(builder, fmtstr.view(), variadic_format_params));
|
||||
builder.append(">\n"sv);
|
||||
builder.append("\n"sv);
|
||||
}
|
||||
|
||||
void ErrorNode::dump_tree(StringBuilder& builder)
|
||||
|
|
Loading…
Reference in a new issue