refactor: 清理未使用符号,合并bind_constructor宏,统一init/rebind绑定列表,bind_number改为表驱动
This commit is contained in:
@@ -15,14 +15,6 @@ impl NativeResult {
|
||||
Self::Err(val)
|
||||
}
|
||||
|
||||
pub fn into_result(self) -> Result<JsValue, JsValue> {
|
||||
match self {
|
||||
Self::Ok(val) => Ok(val),
|
||||
Self::Err(err) => Err(err),
|
||||
Self::TailCall { .. } => panic!("TailCall cannot be converted to Result"),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn unwrap(self) -> JsValue {
|
||||
match self {
|
||||
Self::Ok(val) => val,
|
||||
|
||||
Reference in New Issue
Block a user