LibJS: Implement a nearly empty Intl.Locale object

This adds plumbing for the Intl.Locale object, constructor, and
prototype.
This commit is contained in:
Timothy Flynn 2021-09-02 08:32:43 -04:00 committed by Linus Groh
commit 2c10e9fdd3
Notes: sideshowbarker 2024-07-18 04:53:49 +09:00
12 changed files with 235 additions and 2 deletions

View file

@ -76,8 +76,9 @@
__JS_ENUMERATE(Float32Array, float32_array, Float32ArrayPrototype, Float32ArrayConstructor, float) \
__JS_ENUMERATE(Float64Array, float64_array, Float64ArrayPrototype, Float64ArrayConstructor, double)
#define JS_ENUMERATE_INTL_OBJECTS \
__JS_ENUMERATE(DisplayNames, display_names, DisplayNamesPrototype, DisplayNamesConstructor)
#define JS_ENUMERATE_INTL_OBJECTS \
__JS_ENUMERATE(DisplayNames, display_names, DisplayNamesPrototype, DisplayNamesConstructor) \
__JS_ENUMERATE(Locale, locale, LocalePrototype, LocaleConstructor)
#define JS_ENUMERATE_TEMPORAL_OBJECTS \
__JS_ENUMERATE(Calendar, calendar, CalendarPrototype, CalendarConstructor) \