1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:57:35 +00:00

LibJS: Add a bunch more missing ECMA-262 section/title/URL comments

This commit is contained in:
Linus Groh 2021-06-19 00:38:41 +01:00
parent 7f97e33778
commit 7f8245439b
9 changed files with 56 additions and 1 deletions

View file

@ -24,7 +24,10 @@ void FunctionConstructor::initialize(GlobalObject& global_object)
{
auto& vm = this->vm();
NativeFunction::initialize(global_object);
// 20.2.2.2 Function.prototype, https://tc39.es/ecma262/#sec-function.prototype
define_property(vm.names.prototype, global_object.function_prototype(), 0);
define_property(vm.names.length, Value(1), Attribute::Configurable);
}