mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibJS: Port create_temporal_time_zone() to String
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 02:28:18 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/5a2dfc52f8 Pull-request: https://github.com/SerenityOS/serenity/pull/17186 Reviewed-by: https://github.com/trflynn89 ✅
@@ -63,7 +63,7 @@ ThrowCompletionOr<NonnullGCPtr<Object>> TimeZoneConstructor::construct(FunctionO
|
||||
}
|
||||
|
||||
// 4. Return ? CreateTemporalTimeZone(identifier, NewTarget).
|
||||
return *TRY(create_temporal_time_zone(vm, identifier.to_deprecated_string(), &new_target));
|
||||
return *TRY(create_temporal_time_zone(vm, identifier, &new_target));
|
||||
}
|
||||
|
||||
// 11.3.2 Temporal.TimeZone.from ( item ), https://tc39.es/proposal-temporal/#sec-temporal.timezone.from
|
||||
|
||||
Reference in New Issue
Block a user