feat: 新增 Intl 特性域骨架实现

This commit is contained in:
2026-10-16 05:08:58 +00:00
parent 5e7808bb08
commit 04b991f5d8
17 changed files with 2417 additions and 31 deletions
+20
View File
@@ -148,6 +148,26 @@ impl oxide_runtime_api::VmHost for Vm {
ProtoKind::MessageEventProto => &world.message_event_proto,
ProtoKind::ErrorEventProto => &world.error_event_proto,
ProtoKind::CustomEventProto => &world.custom_event_proto,
ProtoKind::NumberFormatConstructor => &world.number_format_constructor,
ProtoKind::NumberFormatProto => &world.number_format_proto,
ProtoKind::DateTimeFormatConstructor => &world.date_time_format_constructor,
ProtoKind::DateTimeFormatProto => &world.date_time_format_proto,
ProtoKind::CollatorConstructor => &world.collator_constructor,
ProtoKind::CollatorProto => &world.collator_proto,
ProtoKind::PluralRulesConstructor => &world.plural_rules_constructor,
ProtoKind::PluralRulesProto => &world.plural_rules_proto,
ProtoKind::ListFormatConstructor => &world.list_format_constructor,
ProtoKind::ListFormatProto => &world.list_format_proto,
ProtoKind::RelativeTimeFormatConstructor => &world.relative_time_format_constructor,
ProtoKind::RelativeTimeFormatProto => &world.relative_time_format_proto,
ProtoKind::DisplayNamesConstructor => &world.display_names_constructor,
ProtoKind::DisplayNamesProto => &world.display_names_proto,
ProtoKind::SegmenterConstructor => &world.segmenter_constructor,
ProtoKind::SegmenterProto => &world.segmenter_proto,
ProtoKind::LocaleConstructor => &world.locale_constructor,
ProtoKind::LocaleProto => &world.locale_proto,
ProtoKind::DurationFormatConstructor => &world.duration_format_constructor,
ProtoKind::DurationFormatProto => &world.duration_format_proto,
};
P::as_ptr(p) as *mut JsObject
}