1
Fork 0
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:
Linus Groh 2021-06-13 12:20:21 +01:00 committed by GitHub
parent f32ab73acc
commit 920b4d730e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

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