diff options
author | Linus Groh <mail@linusgroh.de> | 2021-09-29 00:13:41 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-09-29 23:49:53 +0100 |
commit | 73bae7d779ebbf14eec603d8619f4d5247a6e69a (patch) | |
tree | 85ef6f46da8ff1dd50d1295921fa0b211ac0970a /Meta | |
parent | 9b4362f10a5a87470f43c1086717daa9ce04bb08 (diff) | |
download | serenity-73bae7d779ebbf14eec603d8619f4d5247a6e69a.zip |
LibJS: Convert internal_prevent_extensions() to ThrowCompletionOr
Diffstat (limited to 'Meta')
-rw-r--r-- | Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<bool> 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<bool> @class_name@::internal_prevent_extensions() { // 1. Return false. return false; |