44
55use crate :: {
66 ecmascript:: {
7- Agent , ArgumentsList , BUILTIN_STRING_MEMORY , Behaviour , Builtin , BuiltinGetter , JsResult ,
8- PropertyKey , Realm , String , Value ,
7+ Agent , ArgumentsList , BUILTIN_STRING_MEMORY , Behaviour , Builtin , BuiltinGetter ,
8+ ExceptionType , JsResult , PropertyKey , Realm , String , Value ,
99 builders:: OrdinaryObjectBuilder ,
1010 builtins:: temporal:: plain_time:: {
1111 add_duration_to_time, require_internal_slot_temporal_plain_time,
@@ -88,6 +88,8 @@ impl Builtin for TemporalPlainTimePrototypeSubtract {
8888 const NAME : String < ' static > = BUILTIN_STRING_MEMORY . subtract ;
8989 const LENGTH : u8 = 1 ;
9090 const BEHAVIOUR : Behaviour = Behaviour :: Regular ( TemporalPlainTimePrototype :: subtract) ;
91+ }
92+
9193struct TemporalPlainTimePrototypeValueOf ;
9294impl Builtin for TemporalPlainTimePrototypeValueOf {
9395 const NAME : String < ' static > = BUILTIN_STRING_MEMORY . valueOf ;
@@ -231,6 +233,8 @@ impl TemporalPlainTimePrototype {
231233 const ADD : bool = false ;
232234 add_duration_to_time :: < ADD > ( agent, plain_time. unbind ( ) , duration. unbind ( ) , gc)
233235 . map ( Value :: from)
236+ }
237+
234238 /// ### [4.3.19 Temporal.PlainTime.prototype.valueOf](https://tc39.es/proposal-temporal/#sec-temporal.plaintime.prototype.valueof)
235239 fn value_of < ' gc > (
236240 agent : & mut Agent ,
@@ -253,7 +257,7 @@ impl TemporalPlainTimePrototype {
253257 let plain_time_constructor = intrinsics. temporal_plain_time ( ) ;
254258
255259 OrdinaryObjectBuilder :: new_intrinsic_object ( agent, realm, this)
256- . with_property_capacity ( 10 )
260+ . with_property_capacity ( 11 )
257261 . with_prototype ( object_prototype)
258262 . with_constructor_property ( plain_time_constructor)
259263 . with_builtin_function_getter_property :: < TemporalPlainTimePrototypeGetHour > ( )
0 commit comments