mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +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
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