feat: TypedArray 原型方法族全量解锁(回调/查找/迭代/排序/ES2023 copy 族)

This commit is contained in:
2026-08-09 13:18:50 +08:00
parent 2bebd822d0
commit c65f3be179
5 changed files with 904 additions and 18 deletions
+4
View File
@@ -520,6 +520,10 @@ pub fn strict_eq(lhs: JsValue, rhs: JsValue) -> bool {
if lhs.is_int() && rhs.is_int() {
return lhs.as_int() == rhs.as_int();
}
// Number 跨 int/double 表示比较:`42 === 42.0` 按 SameValue 语义应相等。
if (lhs.is_int() || lhs.is_double()) && (rhs.is_int() || rhs.is_double()) {
return strict_double_eq(to_f64(lhs), to_f64(rhs));
}
if lhs.is_double() && rhs.is_double() {
return strict_double_eq(lhs.as_double(), rhs.as_double());
}