feat: 共享 ThrowTypeError 对象并拆分 arguments callee 四象限

This commit is contained in:
2026-09-26 15:01:50 +00:00
parent d773cc7282
commit de236fb5d1
11 changed files with 138 additions and 67 deletions
@@ -494,6 +494,13 @@ impl BuiltinWorld {
} else {
current.string_default_iterator.get()
}),
// %ThrowTypeError% 原型链挂 Function.prototype:function 家族脏时
// 置空由绑定层重建,未脏沿用旧对象(跨重建恒等)。
throw_type_error: std::cell::Cell::new(if dirty.function {
std::ptr::null()
} else {
current.throw_type_error.get()
}),
array_proto,
function_proto,
string_proto,