1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:57:47 +00:00

LibJS: Make Set.prototype.size an accessor

Also fix its attributes, should be just configurable.
This commit is contained in:
Linus Groh 2021-06-13 20:13:38 +01:00
parent 3ed5a0c68d
commit b121837898

View file

@ -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);