1
Fork 0
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:
Daniel Bertalan 2023-06-29 20:41:37 +02:00 committed by Andreas Kling
parent 6eb06384b3
commit 1dce1994eb
6 changed files with 9 additions and 9 deletions

View file

@ -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 {