mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:17:44 +00:00
LibJS: Make RefPtr and NonnullRefPtr usage const-correct
This mainly affected the AST, which is now const throughout.
This commit is contained in:
parent
b2b942b4ec
commit
bd5d8e9d35
15 changed files with 505 additions and 494 deletions
|
@ -87,7 +87,7 @@ static Result<void, TestError> run_program(InterpreterT& interpreter, ScriptOrMo
|
|||
});
|
||||
} else {
|
||||
auto program_node = program.visit(
|
||||
[](auto& visitor) -> NonnullRefPtr<JS::Program> {
|
||||
[](auto& visitor) -> NonnullRefPtr<JS::Program const> {
|
||||
return visitor->parse_node();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue