refactor: 清理未使用符号,合并bind_constructor宏,统一init/rebind绑定列表,bind_number改为表驱动

This commit is contained in:
爱特每羊队
2026-06-24 12:12:44 +08:00
parent f602ae5f00
commit 6bf5daa1af
27 changed files with 140 additions and 297 deletions
-8
View File
@@ -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,