mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 21:45:08 +00:00
LibJS+LibWeb: Use Object::set_prototype() in more places
This commit is contained in:
parent
84c9f3e0d0
commit
ba6e4c7ae1
5 changed files with 5 additions and 10 deletions
|
@ -82,7 +82,7 @@ void ECMAScriptFunctionObject::initialize(GlobalObject& global_object)
|
|||
break;
|
||||
case FunctionKind::Generator:
|
||||
// prototype is "g1.prototype" in figure-2 (https://tc39.es/ecma262/img/figure-2.png)
|
||||
(void)prototype->internal_set_prototype_of(global_object.generator_object_prototype());
|
||||
set_prototype(global_object.generator_object_prototype());
|
||||
break;
|
||||
}
|
||||
define_direct_property(vm.names.prototype, prototype, Attribute::Writable);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue