mirror of
https://github.com/RGBCube/serenity
synced 2025-06-29 03:42:07 +00:00
LibJS: Make get_option() options Object a const&
This only calls Object::get() on the options Object, which is const-qualified.
This commit is contained in:
parent
5ae6ad8557
commit
c099b1b8a5
2 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ Object* get_options_object(GlobalObject& global_object, Value options)
|
|||
}
|
||||
|
||||
// 13.3 GetOption ( options, property, types, values, fallback ), https://tc39.es/proposal-temporal/#sec-getoption
|
||||
Value get_option(GlobalObject& global_object, Object& options, PropertyName const& property, Vector<OptionType> const& types, Vector<StringView> const& values, Value fallback)
|
||||
Value get_option(GlobalObject& global_object, Object const& options, PropertyName const& property, Vector<OptionType> const& types, Vector<StringView> const& values, Value fallback)
|
||||
{
|
||||
VERIFY(property.is_string());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue