handle machine heap/stack allocation error
This commit is contained in:
@@ -2359,8 +2359,8 @@ impl Machine {
|
||||
|
||||
let mut writer = match self.machine_st.heap.reserve(3 + meta_specs.len()) {
|
||||
Ok(writer) => writer,
|
||||
Err(err_loc) => {
|
||||
self.machine_st.throw_resource_error(err_loc);
|
||||
Err(err) => {
|
||||
self.machine_st.throw_resource_error(err);
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user