mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:07:34 +00:00
LibJS: Add missing ECMA-262 section/title/URL comments to Map
This commit is contained in:
parent
f32ab73acc
commit
920b4d730e
2 changed files with 5 additions and 0 deletions
|
@ -21,7 +21,10 @@ void MapConstructor::initialize(GlobalObject& global_object)
|
|||
{
|
||||
auto& vm = this->vm();
|
||||
NativeFunction::initialize(global_object);
|
||||
|
||||
// 24.1.2.1 Map.prototype, https://tc39.es/ecma262/#sec-map.prototype
|
||||
define_property(vm.names.prototype, global_object.map_prototype(), 0);
|
||||
|
||||
define_property(vm.names.length, Value(0), Attribute::Configurable);
|
||||
|
||||
define_native_accessor(vm.well_known_symbol_species(), symbol_species_getter, {}, Attribute::Configurable);
|
||||
|
@ -31,6 +34,7 @@ MapConstructor::~MapConstructor()
|
|||
{
|
||||
}
|
||||
|
||||
// 24.1.1.1 Map ( [ iterable ] ), https://tc39.es/ecma262/#sec-map-iterable
|
||||
Value MapConstructor::call()
|
||||
{
|
||||
auto& vm = this->vm();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue