mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 18:51:13 +08:00
feat: 共享 ThrowTypeError 对象并拆分 arguments callee 四象限
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user