mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 14:18:20 +00:00
Validate that CPU features are supported when instantiating a module
This commit is contained in:
@@ -73,6 +73,12 @@ pub unsafe extern "C" fn wasm_instance_new(
|
||||
return None;
|
||||
}
|
||||
|
||||
Err(e @ InstantiationError::CpuFeature(_)) => {
|
||||
crate::error::update_last_error(e.to_string());
|
||||
|
||||
return None;
|
||||
}
|
||||
|
||||
Err(InstantiationError::HostEnvInitialization(error)) => {
|
||||
crate::error::update_last_error(error);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user