From 73bae7d779ebbf14eec603d8619f4d5247a6e69a Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Wed, 29 Sep 2021 00:13:41 +0100 Subject: LibJS: Convert internal_prevent_extensions() to ThrowCompletionOr --- Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Meta') diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp index 25195cda90..4c7d96129b 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp @@ -1419,7 +1419,7 @@ public: virtual bool internal_set(JS::PropertyName const&, JS::Value, JS::Value) override; virtual bool internal_define_own_property(JS::PropertyName const&, JS::PropertyDescriptor const&) override; virtual bool internal_delete(JS::PropertyName const&) override; - virtual bool internal_prevent_extensions() override; + virtual JS::ThrowCompletionOr internal_prevent_extensions() override; virtual JS::MarkedValueList internal_own_property_keys() const override; )~~~"); } @@ -2293,7 +2293,7 @@ bool @class_name@::internal_delete(JS::PropertyName const& property_name) // 3.9.5. [[PreventExtensions]], https://heycam.github.io/webidl/#legacy-platform-object-preventextensions scoped_generator.append(R"~~~( -bool @class_name@::internal_prevent_extensions() +JS::ThrowCompletionOr @class_name@::internal_prevent_extensions() { // 1. Return false. return false; -- cgit v1.2.3