mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibJS: Implement Object.defineProperties()
This commit is contained in:
committed by
Andreas Kling
parent
275da6fcc9
commit
da8a35a79e
Notes:
sideshowbarker
2024-07-18 20:35:02 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/da8a35a79e1 Pull-request: https://github.com/SerenityOS/serenity/pull/6218 Reviewed-by: https://github.com/Lubrsi
@@ -115,6 +115,8 @@ public:
|
||||
bool define_native_function(const StringOrSymbol& property_name, AK::Function<Value(VM&, GlobalObject&)>, i32 length = 0, PropertyAttributes attributes = default_attributes);
|
||||
bool define_native_property(const StringOrSymbol& property_name, AK::Function<Value(VM&, GlobalObject&)> getter, AK::Function<void(VM&, GlobalObject&, Value)> setter, PropertyAttributes attributes = default_attributes);
|
||||
|
||||
void define_properties(Value properties);
|
||||
|
||||
virtual bool delete_property(const PropertyName&);
|
||||
|
||||
virtual bool is_array() const { return false; }
|
||||
|
||||
Reference in New Issue
Block a user