mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-12 08:31:21 +00:00
feat(runtime-core) Create the always_trap
host function.
This commit is contained in:
@ -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::*;
|
||||
|
Reference in New Issue
Block a user