feat(runtime-core) Create the always_trap host function.

This commit is contained in:
Ivan Enderlin
2020-01-09 15:10:53 +01:00
parent cd6e4bdaee
commit 19c3837881

View File

@ -733,6 +733,12 @@ where
}
}
/// Function that always fails. It can be used as a placeholder when a
/// host function is missing for instance.
pub(crate) fn always_trap() -> Result<(), &'static str> {
Err("not implemented")
}
#[cfg(test)]
mod tests {
use super::*;