diff options
author | Linus Groh <mail@linusgroh.de> | 2021-09-28 23:54:42 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-09-29 23:49:53 +0100 |
commit | 8c81c84c1815d11e3ddbb1ca54a35b1e80cd617d (patch) | |
tree | 82af0c7aecedd6a76000105e8ca2aa85540b01ad /Meta | |
parent | 5148150e1ccdce78c84d848dd873bc31b247c781 (diff) | |
download | serenity-8c81c84c1815d11e3ddbb1ca54a35b1e80cd617d.zip |
LibJS: Convert internal_set_prototype_of() to ThrowCompletionOr
Diffstat (limited to 'Meta')
-rw-r--r-- | Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp index 61b0c9a04f..25195cda90 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp @@ -1553,7 +1553,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@")); + auto success = internal_set_prototype_of(&static_cast<WindowObject&>(global_object).ensure_web_prototype<@prototype_class@>("@name@")).release_value(); VERIFY(success); } )~~~"); @@ -2808,12 +2808,12 @@ namespace Web::Bindings { // https://heycam.github.io/webidl/#es-DOMException-specialness // Object.getPrototypeOf(DOMException.prototype) === Error.prototype generator.append(R"~~~( - auto success = internal_set_prototype_of(global_object.error_prototype()); + auto success = internal_set_prototype_of(global_object.error_prototype()).release_value(); VERIFY(success); )~~~"); } else if (!interface.parent_name.is_empty()) { generator.append(R"~~~( - auto success = internal_set_prototype_of(&static_cast<WindowObject&>(global_object).ensure_web_prototype<@prototype_base_class@>("@parent_name@")); + auto success = internal_set_prototype_of(&static_cast<WindowObject&>(global_object).ensure_web_prototype<@prototype_base_class@>("@parent_name@")).release_value(); VERIFY(success); )~~~"); } |