Skip Wat variants for assert_trap

This commit is contained in:
Rerumu 2022-06-16 05:24:35 -04:00
parent 8a92d8f9b6
commit c756b4bc6d
2 changed files with 10 additions and 2 deletions

View File

@ -86,7 +86,11 @@ impl Target for LuaJIT {
write!(w, r#"loaded["{name}"].global_list["{global}"].value"#)?;
writeln!(w, ", nil)")
}
WastExecute::Wat(_) => panic!("Wat not supported"),
WastExecute::Wat(_) => {
// FIXME: Assert the `start` function
Ok(())
}
}
}

View File

@ -93,7 +93,11 @@ impl Target for Luau {
write!(w, r#"loaded["{name}"].global_list["{global}"].value"#)?;
writeln!(w, ", nil)")
}
WastExecute::Wat(_) => panic!("Wat not supported"),
WastExecute::Wat(_) => {
// FIXME: Assert the `start` function
Ok(())
}
}
}