mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:37:45 +00:00
LibJS: Make parse_temporal_*_string() take a StringView
The underlying parse_iso8601() function already does this as well.
This commit is contained in:
parent
82ba940646
commit
90a1de564c
10 changed files with 31 additions and 31 deletions
|
@ -332,7 +332,7 @@ ThrowCompletionOr<Object*> to_temporal_time_zone(VM& vm, Value temporal_time_zon
|
|||
}
|
||||
|
||||
// 2. Let identifier be ? ToString(temporalTimeZoneLike).
|
||||
auto identifier = TRY(temporal_time_zone_like.to_deprecated_string(vm));
|
||||
auto identifier = TRY(temporal_time_zone_like.to_string(vm));
|
||||
|
||||
// 3. Let parseResult be ? ParseTemporalTimeZoneString(identifier).
|
||||
auto parse_result = TRY(parse_temporal_time_zone_string(vm, identifier));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue