From c6f4ecced9abd2b1ba78959ad1a698399e2ce542 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Mon, 26 Jul 2021 23:38:49 +0100 Subject: LibJS: Update Temporal spec comment that's now been corrected See: https://github.com/tc39/proposal-temporal/commit/6d2350f --- Userland/Libraries/LibJS/Runtime/Temporal/PlainDateTimePrototype.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Userland') diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/PlainDateTimePrototype.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/PlainDateTimePrototype.cpp index 0a273be456..9ed8350014 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/PlainDateTimePrototype.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/PlainDateTimePrototype.cpp @@ -117,8 +117,7 @@ JS_DEFINE_NATIVE_FUNCTION(PlainDateTimePrototype::get_iso_fields) // 11. Perform ! CreateDataPropertyOrThrow(fields, "isoNanosecond", 𝔽(dateTime.[[ISONanosecond]])). fields->create_data_property_or_throw(vm.names.isoNanosecond, Value(date_time->iso_nanosecond())); - // TODO: Typo in the spec? ([[Second]] -> [[ISOSecond]]) - // 12. Perform ! CreateDataPropertyOrThrow(fields, "isoSecond", 𝔽(dateTime.[[Second]])). + // 12. Perform ! CreateDataPropertyOrThrow(fields, "isoSecond", 𝔽(dateTime.[[ISOSecond]])). fields->create_data_property_or_throw(vm.names.isoSecond, Value(date_time->iso_second())); // 13. Perform ! CreateDataPropertyOrThrow(fields, "isoYear", 𝔽(dateTime.[[ISOYear]])). -- cgit v1.2.3