Implement FIXME in debug/src/expression.rs (#902)

This commit is contained in:
Yury Delendik
2020-02-04 18:47:20 -06:00
committed by GitHub
parent 1bfca842b0
commit b3ac718421
4 changed files with 82 additions and 4 deletions

View File

@@ -27,6 +27,16 @@ pub fn instantiate(wasm: &[u8], strategy: Strategy) {
config
.strategy(strategy)
.expect("failed to enable lightbeam");
instantiate_with_config(wasm, config);
}
/// Instantiate the Wasm buffer, and implicitly fail if we have an unexpected
/// panic or segfault or anything else that can be detected "passively".
///
/// The engine will be configured using provided config.
///
/// See also `instantiate` functions.
pub fn instantiate_with_config(wasm: &[u8], config: Config) {
let engine = Engine::new(&config);
let store = Store::new(&engine);