feat: 新增 Symbol.species well-known symbol 绑定(Symbol.species 解析/键槽/内建对象)

This commit is contained in:
爱特每羊队
2026-08-12 12:50:53 +08:00
parent 291250f3e6
commit 3e61b573db
6 changed files with 22 additions and 3 deletions
+1
View File
@@ -112,6 +112,7 @@ fn decode_symbol_key<H: VmHost>(vm: &H, key: u32) -> JsValue {
6 => world.sym_has_instance.as_ptr(),
7 => world.sym_match_all.as_ptr(),
8 => world.sym_async_iterator.as_ptr(),
10 => world.sym_species.as_ptr(),
_ => world.sym_to_string_tag.as_ptr(),
};
return JsValue::from_js_object(ptr as *mut JsObject);