Skip to content

Commit

Permalink
Fix fuzz to use new API
Browse files Browse the repository at this point in the history
  • Loading branch information
jtran committed Dec 28, 2024
1 parent 70b8541 commit ad0b0b8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/wasm-lib/kcl/fuzz/fuzz_targets/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@
use libfuzzer_sys::fuzz_target;

fuzz_target!(|data: &str| {
if let Ok(v) = kcl_lib::token::lexer(data) {
let _ = kcl_lib::parser::Parser::new(v).ast();
}
let _ = kcl_lib::Program::parse_no_errs(data);
});

0 comments on commit ad0b0b8

Please sign in to comment.