diff options
author | Linus Groh <mail@linusgroh.de> | 2020-11-25 18:54:56 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-11-25 20:00:23 +0100 |
commit | 4e68f179d6a9ecd9b710b97eaf3c164d40110507 (patch) | |
tree | 5eb28c7a521c50de5c08a9cca863b32c225b9edc /Meta/Lagom/Fuzzers | |
parent | 41d042cc86d1ac7f99be141eff4e2966e933da73 (diff) | |
download | serenity-4e68f179d6a9ecd9b710b97eaf3c164d40110507.zip |
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. :^)
Diffstat (limited to 'Meta/Lagom/Fuzzers')
-rw-r--r-- | Meta/Lagom/Fuzzers/FuzzJs.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Meta/Lagom/Fuzzers/FuzzJs.cpp b/Meta/Lagom/Fuzzers/FuzzJs.cpp index 4e1ea10af6..86c878c9e7 100644 --- a/Meta/Lagom/Fuzzers/FuzzJs.cpp +++ b/Meta/Lagom/Fuzzers/FuzzJs.cpp @@ -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; } |