mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:27:35 +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
|
@ -140,7 +140,7 @@ ThrowCompletionOr<PlainDate*> to_temporal_date(VM& vm, Value item, Object const*
|
|||
(void)TRY(to_temporal_overflow(vm, options));
|
||||
|
||||
// 5. Let string be ? ToString(item).
|
||||
auto string = TRY(item.to_deprecated_string(vm));
|
||||
auto string = TRY(item.to_string(vm));
|
||||
|
||||
// 6. Let result be ? ParseTemporalDateString(string).
|
||||
auto result = TRY(parse_temporal_date_string(vm, string));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue