mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:57:34 +00:00
LibJS: Make the options arg of InterpretTemporalDateTimeFields nullable
This fixes "reference binding to null pointer" UBSan warnings.
This commit is contained in:
parent
6eb06384b3
commit
1dce1994eb
6 changed files with 9 additions and 9 deletions
|
@ -180,7 +180,7 @@ ThrowCompletionOr<ZonedDateTime*> to_temporal_zoned_date_time(VM& vm, Value item
|
|||
}
|
||||
|
||||
// l. Let result be ? InterpretTemporalDateTimeFields(calendar, fields, options).
|
||||
result = TRY(interpret_temporal_date_time_fields(vm, *calendar, *fields, *options));
|
||||
result = TRY(interpret_temporal_date_time_fields(vm, *calendar, *fields, options));
|
||||
}
|
||||
// 6. Else,
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue