mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-25 20:51:54 +00:00
remove Error::NotImplemented
This commit is contained in:
@ -27,8 +27,6 @@ pub enum Error {
|
|||||||
Interpreter(String),
|
Interpreter(String),
|
||||||
/// Trap.
|
/// Trap.
|
||||||
Trap(String),
|
Trap(String),
|
||||||
/// Functionality not yet implemented.
|
|
||||||
NotImplemented,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Into<String> for Error {
|
impl Into<String> for Error {
|
||||||
@ -46,7 +44,6 @@ impl Into<String> for Error {
|
|||||||
Error::Interpreter(s) => s,
|
Error::Interpreter(s) => s,
|
||||||
Error::Value(s) => s,
|
Error::Value(s) => s,
|
||||||
Error::Trap(s) => format!("trap: {}", s),
|
Error::Trap(s) => format!("trap: {}", s),
|
||||||
Error::NotImplemented => "not implemented".into(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ impl TableInstance {
|
|||||||
for val in value {
|
for val in value {
|
||||||
match self.variable_type {
|
match self.variable_type {
|
||||||
VariableType::AnyFunc => self.set(offset, RuntimeValue::AnyFunc(*val))?,
|
VariableType::AnyFunc => self.set(offset, RuntimeValue::AnyFunc(*val))?,
|
||||||
_ => return Err(Error::NotImplemented),
|
_ => return Err(Error::Table(format!("table of type {:?} is not supported", self.variable_type))),
|
||||||
}
|
}
|
||||||
offset += 1;
|
offset += 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user