fix: 删除 super 属性按规范报错并补 setPrototypeOf 内置

This commit is contained in:
2026-09-18 01:06:48 +00:00
parent 75eb0294c4
commit ac6a48412b
7 changed files with 132 additions and 0 deletions
+1
View File
@@ -39,6 +39,7 @@ impl BuiltinWorld {
("defineProperties", methods.define_properties, 2),
("fromEntries", methods.from_entries, 1),
("getPrototypeOf", methods.get_prototype_of, 1),
("setPrototypeOf", methods.set_prototype_of, 2),
("hasOwn", methods.has_own, 2),
("entries", methods.entries, 1),
("values", methods.values, 1),
@@ -19,6 +19,7 @@ pub struct ObjectMethods {
pub define_properties: *const (),
pub from_entries: *const (),
pub get_prototype_of: *const (),
pub set_prototype_of: *const (),
pub has_own: *const (),
pub entries: *const (),
pub values: *const (),