mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 08:36:12 +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
Notes:
sideshowbarker
2024-07-17 01:13:07 +09:00
Author: https://github.com/linusg
Commit: 90a1de564c
Pull-request: https://github.com/SerenityOS/serenity/pull/17186
Reviewed-by: https://github.com/trflynn89 ✅
10 changed files with 31 additions and 31 deletions
|
@ -165,7 +165,7 @@ ThrowCompletionOr<PlainDateTime*> to_temporal_date_time(VM& vm, Value item, Obje
|
|||
(void)TRY(to_temporal_overflow(vm, options));
|
||||
|
||||
// b. Let string be ? ToString(item).
|
||||
auto string = TRY(item.to_deprecated_string(vm));
|
||||
auto string = TRY(item.to_string(vm));
|
||||
|
||||
// c. Let result be ? ParseTemporalDateTimeString(string).
|
||||
result = TRY(parse_temporal_date_time_string(vm, string));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue