From a08d0e61958608b13485684eeb1dc11a3b85d6e7 Mon Sep 17 00:00:00 2001 From: Kevin Ness <46825870+nekevss@users.noreply.github.com> Date: Mon, 9 Dec 2024 15:33:13 -0600 Subject: [PATCH] Adjust PlainTime valueOf implmentation --- 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 b496e5af23c..562f6922d5b 100644 --- a/core/engine/src/builtins/temporal/plain_time/mod.rs +++ b/core/engine/src/builtins/temporal/plain_time/mod.rs @@ -580,9 +580,9 @@ impl PlainTime { } /// 4.3.22 Temporal.PlainTime.prototype.valueOf ( ) - pub(crate) fn value_of(_this: &JsValue, _: &[JsValue], _: &mut Context) -> JsResult { + fn value_of(_this: &JsValue, _: &[JsValue], _: &mut Context) -> JsResult { // 1. Throw a TypeError exception. - Err(JsNativeError::error() + Err(JsNativeError::typ() .with_message("valueOf not implemented for Temporal objects. See 'compare', 'equals', or `toString`") .into()) }