mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-23 05:31:32 +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)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
Reference in New Issue
Block a user