LibJS: Make RefPtr and NonnullRefPtr usage const-correct

This mainly affected the AST, which is now const throughout.
This commit is contained in:
Andreas Kling 2023-02-19 22:07:52 +01:00
commit bd5d8e9d35
Notes: sideshowbarker 2024-07-17 20:19:08 +09:00
15 changed files with 505 additions and 494 deletions

View file

@ -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();
});