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

LibJS: Convert create_data_property() to ThrowCompletionOr

This commit is contained in:
Linus Groh 2021-10-03 00:53:06 +01:00
parent 1d45541278
commit fb443b3fb4
5 changed files with 14 additions and 27 deletions

View file

@ -2880,7 +2880,7 @@ void @prototype_class@::initialize(JS::GlobalObject& global_object)
if (attribute.extended_attributes.contains("Unscopable")) {
attribute_generator.append(R"~~~(
unscopable_object->create_data_property("@attribute.name@", JS::Value(true));
MUST(unscopable_object->create_data_property("@attribute.name@", JS::Value(true)));
)~~~");
}
@ -2911,7 +2911,7 @@ void @prototype_class@::initialize(JS::GlobalObject& global_object)
if (function.extended_attributes.contains("Unscopable")) {
function_generator.append(R"~~~(
unscopable_object->create_data_property("@function.name@", JS::Value(true));
MUST(unscopable_object->create_data_property("@function.name@", JS::Value(true)));
)~~~");
}