mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibJS: Make new_target parameter of all Temporal AOs a const*
These are passed to ordinary_create_from_constructor() in each case, which takes the parameter as a const&, so these can also be const.
This commit is contained in:
parent
cf71805aa8
commit
e4c07c5b8f
Notes:
sideshowbarker
2024-07-18 04:46:35 +09:00
Author: https://github.com/linusg
Commit: e4c07c5b8f
Pull-request: https://github.com/SerenityOS/serenity/pull/9918
Reviewed-by: https://github.com/IdanHo ✅
20 changed files with 20 additions and 20 deletions
|
@ -29,7 +29,7 @@ Calendar::Calendar(String identifier, Object& prototype)
|
|||
}
|
||||
|
||||
// 12.1.1 CreateTemporalCalendar ( identifier [ , newTarget ] ), https://tc39.es/proposal-temporal/#sec-temporal-createtemporalcalendar
|
||||
Calendar* create_temporal_calendar(GlobalObject& global_object, String const& identifier, FunctionObject* new_target)
|
||||
Calendar* create_temporal_calendar(GlobalObject& global_object, String const& identifier, FunctionObject const* new_target)
|
||||
{
|
||||
auto& vm = global_object.vm();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue