mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02:00
LibJS: Change all [[RelevantExtensionKeys]] to return constexpr arrays
There's no need to allocate a vector for this internal slot. Similar to
commit: bb11437792
This commit is contained in:
committed by
Linus Groh
parent
e27b077c2a
commit
d2588d852b
Notes:
sideshowbarker
2024-07-17 23:15:36 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/d2588d852bb Pull-request: https://github.com/SerenityOS/serenity/pull/11149 Reviewed-by: https://github.com/linusg ✅
@@ -12,14 +12,6 @@
|
||||
|
||||
namespace JS::Intl {
|
||||
|
||||
Vector<StringView> const& DateTimeFormat::relevant_extension_keys()
|
||||
{
|
||||
// 11.3.3 Internal slots, https://tc39.es/ecma402/#sec-intl.datetimeformat-internal-slots
|
||||
// The value of the [[RelevantExtensionKeys]] internal slot is « "ca", "hc", "nu" ».
|
||||
static Vector<StringView> relevant_extension_keys { "ca"sv, "hc"sv, "nu"sv };
|
||||
return relevant_extension_keys;
|
||||
}
|
||||
|
||||
// 11 DateTimeFormat Objects, https://tc39.es/ecma402/#datetimeformat-objects
|
||||
DateTimeFormat::DateTimeFormat(Object& prototype)
|
||||
: Object(prototype)
|
||||
|
||||
Reference in New Issue
Block a user