Skip to content

Commit

Permalink
Update fuzzing oracles for the API changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed May 20, 2020
1 parent a6ab235 commit aa369af
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crates/fuzzing/src/oracles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ pub fn differential_execution(
// aren't caught during validation or compilation. For example, an imported
// table might not have room for an element segment that we want to
// initialize into it.
let instance = match Instance::new(&module, &imports) {
let instance = match Instance::new(&module, &imports)
.and_then(|new_instance| new_instance.init_reactor(&[]))
{
Ok(instance) => instance,
Err(e) => {
eprintln!(
Expand Down Expand Up @@ -339,7 +341,9 @@ pub fn make_api_calls(api: crate::generators::api::ApiCalls) {
// aren't caught during validation or compilation. For example, an imported
// table might not have room for an element segment that we want to
// initialize into it.
if let Ok(instance) = Instance::new(&module, &imports) {
if let Ok(instance) = Instance::new(&module, &imports)
.and_then(|new_instance| new_instance.init_reactor(&[]))
{
instances.insert(id, instance);
}
}
Expand Down

0 comments on commit aa369af

Please sign in to comment.