1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

LibJS+LibWeb: Use Object::set_prototype() in more places

This commit is contained in:
Linus Groh 2021-10-02 14:32:37 +01:00
parent 84c9f3e0d0
commit ba6e4c7ae1
5 changed files with 5 additions and 10 deletions

View file

@ -1568,8 +1568,7 @@ namespace Web::Bindings {
@wrapper_class@::@wrapper_class@(JS::GlobalObject& global_object, @fully_qualified_name@& impl)
: @wrapper_base_class@(global_object, impl)
{
auto success = internal_set_prototype_of(&static_cast<WindowObject&>(global_object).ensure_web_prototype<@prototype_class@>("@name@")).release_value();
VERIFY(success);
set_prototype(&static_cast<WindowObject&>(global_object).ensure_web_prototype<@prototype_class@>("@name@"));
}
)~~~");
}