LibJS: Expose Symbol.species properties as getters

As required by the specification.
This commit is contained in:
Idan Horowitz 2021-06-12 01:43:33 +03:00 committed by Linus Groh
commit a1f5357ad3
Notes: sideshowbarker 2024-07-18 12:23:12 +09:00
6 changed files with 6 additions and 6 deletions

View file

@ -24,7 +24,7 @@ void SetConstructor::initialize(GlobalObject& global_object)
define_property(vm.names.prototype, global_object.set_prototype(), 0);
define_property(vm.names.length, Value(0), Attribute::Configurable);
define_native_property(vm.well_known_symbol_species(), symbol_species_getter, {}, Attribute::Configurable);
define_native_accessor(vm.well_known_symbol_species(), symbol_species_getter, {}, Attribute::Configurable);
}
SetConstructor::~SetConstructor()