mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-23 01:38:56 +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
Notes:
sideshowbarker
2024-07-16 22:54:10 +09:00
Author: https://github.com/BertalanD
Commit: 1dce1994eb
Pull-request: https://github.com/SerenityOS/serenity/pull/19709
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