refactor: 退役 new_array 死参数与三十四处调用点

This commit is contained in:
2026-10-03 04:32:20 +00:00
parent a4d70a8bfe
commit 214494d3d5
18 changed files with 38 additions and 111 deletions
+1 -1
View File
@@ -748,7 +748,7 @@ pub fn detach_array_buffer_native<H: VmHost>(vm: &mut H, this_val: JsValue) -> N
/// 读取之前:强转副作用不先于 immutable 观测)。
/// 3. newByteLength = ToIntegerOrInfinity(newLength) 传播式(NaN → 0,
/// ±Infinity 保留)。
/// 4. 重取载荷指针(强转调用可触发 epoch 晋升,旧指针悬垂);detached
/// 4. 重取载荷指针(强转调用可触发收集,旧指针悬垂);detached
/// 守卫在求值之后:强转内 detach 与本步前已 detach 同形 TypeError。
/// 5. 定长(重读存储态上限 = 0)→ TypeError,先于界判。
/// 6. newByteLength < 0 或 > 真实上限(重读存储态 − 1)→ RangeError。