mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 09:36:08 +00:00
LibJS: Remove usages of String's null state in Temporal AOs
This commit is contained in:
parent
68aad5d8fa
commit
44c8e158c1
Notes:
sideshowbarker
2024-07-18 08:37:34 +09:00
Author: https://github.com/IdanHo
Commit: 44c8e158c1
Pull-request: https://github.com/SerenityOS/serenity/pull/8922
Reviewed-by: https://github.com/linusg
4 changed files with 7 additions and 6 deletions
|
@ -126,9 +126,10 @@ Object* to_temporal_calendar(GlobalObject& global_object, Value temporal_calenda
|
|||
// 3. If ! IsBuiltinCalendar(identifier) is false, then
|
||||
if (!is_builtin_calendar(identifier)) {
|
||||
// a. Let identifier be ? ParseTemporalCalendarString(identifier).
|
||||
identifier = parse_temporal_calendar_string(global_object, identifier);
|
||||
auto parsed_identifier = parse_temporal_calendar_string(global_object, identifier);
|
||||
if (vm.exception())
|
||||
return {};
|
||||
identifier = move(*parsed_identifier);
|
||||
}
|
||||
|
||||
// 4. Return ? CreateTemporalCalendar(identifier).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue