mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 10:41:11 +08:00
feat: Temporal.PlainYearMonth with/toPlainDate——字段 bag 覆盖(month→monthCode→year)、monthCode 两段校验与 day 级日期合成
This commit is contained in:
@@ -1149,6 +1149,12 @@ pub fn bind_temporal(core: &Arc<KernelCore>, session: &KernelSession, global: &m
|
||||
oxide_builtins::temporal::plain_year_month_subtract::<crate::vm::Vm> as *const (),
|
||||
1,
|
||||
),
|
||||
("with", oxide_builtins::temporal::plain_year_month_with::<crate::vm::Vm> as *const (), 1),
|
||||
(
|
||||
"toPlainDate",
|
||||
oxide_builtins::temporal::plain_year_month_to_plain_date::<crate::vm::Vm> as *const (),
|
||||
1,
|
||||
),
|
||||
],
|
||||
);
|
||||
bind_well_known_data_property(
|
||||
|
||||
Reference in New Issue
Block a user