mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibJS: Make Set.prototype.size an accessor
Also fix its attributes, should be just configurable.
This commit is contained in:
parent
3ed5a0c68d
commit
b121837898
Notes:
sideshowbarker
2024-07-18 12:17:21 +09:00
Author: https://github.com/linusg
Commit: b121837898
Pull-request: https://github.com/SerenityOS/serenity/pull/8042
Reviewed-by: https://github.com/IdanHo ✅
1 changed files with 1 additions and 2 deletions
|
@ -28,8 +28,7 @@ void SetPrototype::initialize(GlobalObject& global_object)
|
|||
define_native_function(vm.names.forEach, for_each, 1, attr);
|
||||
define_native_function(vm.names.has, has, 1, attr);
|
||||
define_native_function(vm.names.values, values, 0, attr);
|
||||
|
||||
define_native_property(vm.names.size, size_getter, {}, attr);
|
||||
define_native_accessor(vm.names.size, size_getter, {}, Attribute::Configurable);
|
||||
|
||||
define_property(vm.names.keys, get(vm.names.values), attr);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue