mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-26 11:41:13 +08:00
fix: 数组长度赋值走统一检查并支持部分截断
This commit is contained in:
@@ -235,7 +235,7 @@ fn frozen_array_write_and_length_throws_in_strict() {
|
||||
);
|
||||
}
|
||||
|
||||
// ── sloppy Object.freeze 数组:元素写静默失败(length 冻结检查仍抛错) ──
|
||||
// ── sloppy Object.freeze 数组:元素写与 length 写均静默失败(严格模式才抛) ──
|
||||
#[test]
|
||||
fn frozen_array_element_write_silently_fails_in_sloppy() {
|
||||
let (_vm, r) = eval_keep_vm(
|
||||
|
||||
Reference in New Issue
Block a user