mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 11:36:10 +00:00
Lagom: Fix FuzzJs build
This was broken with the JS::Parser::Error position changes, but I don't actually see a reason to do anything with the parser errors here, so let's remove it and consider simply not crashing a success. :^)
This commit is contained in:
parent
41d042cc86
commit
4e68f179d6
Notes:
sideshowbarker
2024-07-19 01:16:12 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/4e68f179d6a Pull-request: https://github.com/SerenityOS/serenity/pull/4164
1 changed files with 0 additions and 8 deletions
|
@ -36,13 +36,5 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
|
|||
auto lexer = JS::Lexer(js);
|
||||
auto parser = JS::Parser(lexer);
|
||||
parser.parse_program();
|
||||
if (parser.has_errors()) {
|
||||
for (auto& error : parser.errors()) {
|
||||
if (error.line >= 100000 || error.column >= 100000) {
|
||||
fprintf(stderr, "%s\n", error.to_string().characters());
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue