LibJS: Enable EXPLICIT_SYMBOL_EXPORT

This commit is contained in:
ayeteadoe 2025-06-28 21:39:13 -07:00 committed by Andrew Kaster
commit c14173f651
Notes: github-actions[bot] 2025-06-30 16:51:52 +00:00
258 changed files with 952 additions and 941 deletions

View file

@ -18,7 +18,7 @@
namespace JS::Intl {
class Locale final : public Object {
class JS_API Locale final : public Object {
JS_OBJECT(Locale, Object);
GC_DECLARE_ALLOCATOR(Locale);
@ -85,21 +85,21 @@ private:
};
// Table 1: WeekInfo Record Fields, https://tc39.es/proposal-intl-locale-info/#table-locale-weekinfo-record
struct WeekInfo {
struct JS_API WeekInfo {
u8 minimal_days { 0 }; // [[MinimalDays]]
u8 first_day { 0 }; // [[FirstDay]]
Vector<u8> weekend; // [[Weekend]]
};
Optional<String> get_locale_variants(Unicode::LocaleID const&);
JS_API Optional<String> get_locale_variants(Unicode::LocaleID const&);
GC::Ref<Array> calendars_of_locale(VM&, Locale const&);
GC::Ref<Array> collations_of_locale(VM&, Locale const& locale);
GC::Ref<Array> hour_cycles_of_locale(VM&, Locale const& locale);
GC::Ref<Array> numbering_systems_of_locale(VM&, Locale const&);
GC::Ref<Array> time_zones_of_locale(VM&, Locale const&);
StringView weekday_to_string(StringView weekday);
Optional<u8> string_to_weekday_value(StringView weekday);
WeekInfo week_info_of_locale(Locale const&);
JS_API GC::Ref<Array> calendars_of_locale(VM&, Locale const&);
JS_API GC::Ref<Array> collations_of_locale(VM&, Locale const& locale);
JS_API GC::Ref<Array> hour_cycles_of_locale(VM&, Locale const& locale);
JS_API GC::Ref<Array> numbering_systems_of_locale(VM&, Locale const&);
JS_API GC::Ref<Array> time_zones_of_locale(VM&, Locale const&);
JS_API StringView weekday_to_string(StringView weekday);
JS_API Optional<u8> string_to_weekday_value(StringView weekday);
JS_API WeekInfo week_info_of_locale(Locale const&);
}