mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00
Tests: Cast unused smart-pointer return values to void
This commit is contained in:
parent
b2464cf4c0
commit
9e3a786a64
Notes:
sideshowbarker
2024-07-17 23:09:46 +09:00
Author: https://github.com/AtkinsSJ
Commit: 9e3a786a64
Pull-request: https://github.com/SerenityOS/serenity/pull/11151
2 changed files with 6 additions and 6 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue