mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-23 18:21:13 +08:00
fix: 删除 super 属性按规范报错并补 setPrototypeOf 内置
This commit is contained in:
@@ -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 (),
|
||||
|
||||
Reference in New Issue
Block a user