LibJS: Make options object const in more Temporal AOs

This commit is contained in:
Linus Groh 2022-04-07 23:54:17 +01:00
commit e109b967a1
Notes: sideshowbarker 2024-07-17 14:17:01 +09:00
19 changed files with 36 additions and 36 deletions

View file

@ -88,7 +88,7 @@ JS_DEFINE_NATIVE_FUNCTION(PlainMonthDayConstructor::from)
auto item = vm.argument(0);
// 1. Set options to ? GetOptionsObject(options).
auto* options = TRY(get_options_object(global_object, vm.argument(1)));
auto const* options = TRY(get_options_object(global_object, vm.argument(1)));
// 2. If Type(item) is Object and item has an [[InitializedTemporalMonthDay]] internal slot, then
if (item.is_object() && is<PlainMonthDay>(item.as_object())) {