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
commit b121837898
Notes: sideshowbarker 2024-07-18 12:17:21 +09:00

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