test: 数值断言容忍 int 表示,类私有字段 for-in 用例补公有字段

This commit is contained in:
2026-08-14 06:14:38 +08:00
parent 28c8fe0284
commit 7f7a8c3b66
7 changed files with 28 additions and 16 deletions
@@ -58,7 +58,7 @@ fn array_push_preserves_slots_beyond_255() {
let obj = unsafe { &*result.as_js_object_ptr() };
assert_eq!(obj.prop_count(), 257);
let tail = obj.get_prop_at(256);
assert_eq!(tail.as_double(), 256.0);
assert_eq!(tail.as_int(), 256, "push 循环末尾值保持 int 表示");
}
#[test]