mirror of
https://github.com/RGBCube/serenity
synced 2025-07-06 02:17:34 +00:00
LibJS: Respect Object::get's without_side_effects parameter for numbers
This commit is contained in:
parent
317b88a8c3
commit
6352a33ed2
5 changed files with 10 additions and 10 deletions
|
@ -22,11 +22,11 @@ JS::Value HTMLCollectionWrapper::get(JS::PropertyName const& name, JS::Value rec
|
|||
return JS::Value { wrap(global_object(), *item) };
|
||||
}
|
||||
|
||||
JS::Value HTMLCollectionWrapper::get_by_index(u32 property_index) const
|
||||
JS::Value HTMLCollectionWrapper::get_by_index(u32 property_index, bool without_side_effects) const
|
||||
{
|
||||
auto* item = const_cast<DOM::HTMLCollection&>(impl()).item(property_index);
|
||||
if (!item)
|
||||
return Base::get_by_index(property_index);
|
||||
return Base::get_by_index(property_index, without_side_effects);
|
||||
return wrap(global_object(), *item);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue