mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-20 16:13:21 +00:00
18 lines
413 B
C++
18 lines
413 B
C++
![]() |
/*
|
||
|
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
||
|
*
|
||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||
|
*/
|
||
|
|
||
|
#include <LibJS/AST.h>
|
||
|
#include <LibJS/Bytecode/CodeGenerationError.h>
|
||
|
|
||
|
namespace JS::Bytecode {
|
||
|
|
||
|
ErrorOr<String> CodeGenerationError::to_string() const
|
||
|
{
|
||
|
return String::formatted("CodeGenerationError in {}: {}", failing_node ? failing_node->class_name() : "<unknown node>", reason_literal);
|
||
|
}
|
||
|
|
||
|
}
|