1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:38:10 +00:00

Tests: Cast unused smart-pointer return values to void

This commit is contained in:
Sam Atkins 2021-12-02 11:00:10 +00:00 committed by Andreas Kling
parent b2464cf4c0
commit 9e3a786a64
2 changed files with 6 additions and 6 deletions

View file

@ -20,7 +20,7 @@ TESTJS_GLOBAL_FUNCTION(can_parse_source, canParseSource)
{
auto source = TRY(vm.argument(0).to_string(global_object));
auto parser = JS::Parser(JS::Lexer(source));
parser.parse_program();
(void)parser.parse_program();
return JS::Value(!parser.has_errors());
}