mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 14:57:34 +00:00
LibJS: Remove usages of String's null state in Temporal AOs
This commit is contained in:
parent
68aad5d8fa
commit
44c8e158c1
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