mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-27 12:11:12 +08:00
fix: 修复数组长度与槽位索引截断问题
This commit is contained in:
@@ -227,6 +227,9 @@ fn string_split_with_regexp() {
|
||||
let mut vm = Vm::new();
|
||||
let result = eval(&mut vm, "'a,b,c'.split(/,/)").unwrap();
|
||||
assert!(result.is_object());
|
||||
let obj = unsafe { &*result.as_js_object_ptr() };
|
||||
assert_eq!(obj.prop_count(), 3);
|
||||
assert_eq!(to_str(&vm, obj.get_prop_at(1)), "b");
|
||||
}
|
||||
|
||||
// --- toString ---
|
||||
|
||||
Reference in New Issue
Block a user