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:
Linus Groh 2020-11-25 18:54:56 +00:00 committed by Andreas Kling
parent 41d042cc86
commit 4e68f179d6
Notes: sideshowbarker 2024-07-19 01:16:12 +09:00

View File

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