From 615845f2d3ee24a629f00a57e9598d37e6694af3 Mon Sep 17 00:00:00 2001 From: Kevin Ness Date: Wed, 17 Jul 2024 20:27:21 -0400 Subject: [PATCH] Correct time method binding --- core/engine/src/builtins/temporal/plain_time/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/engine/src/builtins/temporal/plain_time/mod.rs b/core/engine/src/builtins/temporal/plain_time/mod.rs index 8f70d93ddbd..7ecff1b9c93 100644 --- a/core/engine/src/builtins/temporal/plain_time/mod.rs +++ b/core/engine/src/builtins/temporal/plain_time/mod.rs @@ -111,8 +111,8 @@ impl IntrinsicObject for PlainTime { .static_method(Self::from, js_string!("from"), 2) .method(Self::add, js_string!("add"), 1) .method(Self::subtract, js_string!("subtract"), 1) - .method(Self::until, js_string!("subtract"), 2) - .method(Self::since, js_string!("subtract"), 2) + .method(Self::until, js_string!("until"), 2) + .method(Self::since, js_string!("since"), 2) .method(Self::round, js_string!("round"), 1) .method(Self::equals, js_string!("equals"), 1) .method(Self::get_iso_fields, js_string!("getISOFields"), 0)