/* * Copyright (c) 2025, Tim Flynn * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include namespace JS::Intl { // https://tc39.es/ecma402/#resolution-option-descriptor struct ResolutionOptionDescriptor { StringView key; PropertyKey property; OptionType type { OptionType::String }; ReadonlySpan values {}; }; class IntlObject : public Object { JS_OBJECT(IntlObject, Object); public: virtual ReadonlySpan relevant_extension_keys() const = 0; virtual ReadonlySpan resolution_option_descriptors(VM&) const = 0; protected: using Object::Object; }; }