1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:47:44 +00:00

LibJS: Use more specific return types for some Temporal AOs

Instead of returning Object* we should be specific and return Instant*,
TimeZone* etc.
This commit is contained in:
Linus Groh 2021-07-14 20:52:15 +01:00
parent be475cd6a8
commit 6c8f0fbb35
4 changed files with 6 additions and 6 deletions

View file

@ -60,7 +60,7 @@ String default_time_zone()
}
// 11.6.2 CreateTemporalTimeZone ( identifier [ , newTarget ] ), https://tc39.es/proposal-temporal/#sec-temporal-createtemporaltimezone
Object* create_temporal_time_zone(GlobalObject& global_object, String const& identifier, FunctionObject* new_target)
TimeZone* create_temporal_time_zone(GlobalObject& global_object, String const& identifier, FunctionObject* new_target)
{
auto& vm = global_object.vm();