mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
LibJS: Convert create_data_property_or_throw() to ThrowCompletionOr
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 03:07:25 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/364dd42fc8c Pull-request: https://github.com/SerenityOS/serenity/pull/10327 Reviewed-by: https://github.com/IdanHo ✅
@@ -442,7 +442,7 @@ void ECMAScriptFunctionObject::InstanceField::define_field(VM& vm, Object& recei
|
||||
return;
|
||||
init_value = init_value_or_error.release_value();
|
||||
}
|
||||
receiver.create_data_property_or_throw(name, init_value);
|
||||
(void)receiver.create_data_property_or_throw(name, init_value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user