|
@@ -48,10 +48,11 @@ void TimeZonePrototype::initialize(GlobalObject& global_object)
|
|
|
JS_DEFINE_NATIVE_FUNCTION(TimeZonePrototype::id_getter)
|
|
|
{
|
|
|
// 1. Let timeZone be the this value.
|
|
|
- auto time_zone = vm.this_value(global_object);
|
|
|
+ // 2. Perform ? RequireInternalSlot(timeZone, [[InitializedTemporalTimeZone]]).
|
|
|
+ auto* time_zone = TRY(typed_this_object(global_object));
|
|
|
|
|
|
- // 2. Return ? ToString(timeZone).
|
|
|
- return js_string(vm, TRY(time_zone.to_string(global_object)));
|
|
|
+ // 3. Return ? ToString(timeZone).
|
|
|
+ return js_string(vm, TRY(Value(time_zone).to_string(global_object)));
|
|
|
}
|
|
|
|
|
|
// 11.4.4 Temporal.TimeZone.prototype.getOffsetNanosecondsFor ( instant ), https://tc39.es/proposal-temporal/#sec-temporal.timezone.prototype.getoffsetnanosecondsfor
|