Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
saulecabrera committed Jul 8, 2024
1 parent eb9e873 commit ab9342d
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions fuzz/fuzz_targets/json_differential.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@ fn exec(data: &ArbitraryValue) -> Result<()> {
let result: Result<(), _> = cx.eval(JSON_PROGRAM);

if let Err(e) = result {
panic!(
"{}\n{}",
from_js_error(cx.clone(), e).to_string(),
data.to_string()
);
panic!("{}\n{}", from_js_error(cx.clone(), e), **data,);
}

output = globals.get("OUTPUT")?;
Expand All @@ -64,11 +60,7 @@ fn exec(data: &ArbitraryValue) -> Result<()> {
let result: Result<(), _> = cx.eval(JSON_PROGRAM);

if let Err(e) = result {
panic!(
"{}\n{}",
from_js_error(cx.clone(), e).to_string(),
data.to_string()
);
panic!("{}\n{}", from_js_error(cx.clone(), e), **data);
}

ref_output = globals.get("OUTPUT")?;
Expand Down

0 comments on commit ab9342d

Please sign in to comment.