1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-06 05:07:35 +00:00
serenity/Userland/Libraries/LibJS/Tests/builtins/Temporal/TimeZone
Linus Groh 392f5bfebd LibJS: Fix fraction substring range in parse_temporal_time_zone_string()
Two issues:

- The intended range was 9 characters starting from index 1. Since the
  second argument to String::substring() is the length, 10 is
  potentially reading further than the string's length (when only
  providing one fraction digit), causing an assertion failure crash.
- The spec's intention to skip the decimal separator by starting at
  index 1 is incorrect, no decimal separator is present in the result of
  parsing TimeZoneUTCOffsetFractionalPart. I filed a spec fix for this,
  see: https://github.com/tc39/proposal-temporal/pull/1999
2022-01-12 21:24:12 +01:00
..
TimeZone.from.js LibJS: Fix fraction substring range in parse_temporal_time_zone_string() 2022-01-12 21:24:12 +01:00
TimeZone.js LibJS: Support non-UTC time zones in Temporal :^) 2022-01-11 22:17:39 +01:00
TimeZone.prototype.@@toStringTag.js LibJS: Implement Temporal.TimeZone.prototype[@@toStringTag] 2021-07-08 23:08:27 +01:00
TimeZone.prototype.getInstantFor.js LibJS: Implement Temporal.TimeZone.prototype.getInstantFor() 2021-11-01 21:39:45 +01:00
TimeZone.prototype.getNextTransition.js LibJS: Implement Temporal.TimeZone.prototype.getNextTransition() 2021-10-30 16:32:20 +02:00
TimeZone.prototype.getOffsetNanosecondsFor.js LibJS: Actually implement get_iana_time_zone_offset_nanoseconds() 2022-01-11 22:17:39 +01:00
TimeZone.prototype.getOffsetStringFor.js LibJS: Actually implement get_iana_time_zone_offset_nanoseconds() 2022-01-11 22:17:39 +01:00
TimeZone.prototype.getPlainDateTimeFor.js LibJS: Only allow TimeZone this value in TimeZone#getPlainDateTimeFor 2021-12-19 00:13:01 +00:00
TimeZone.prototype.getPossibleInstantsFor.js LibJS: Implement Temporal.TimeZone.prototype.getPossibleInstantsFor() 2021-10-30 16:32:20 +02:00
TimeZone.prototype.getPreviousTransition.js LibJS: Implement Temporal.TimeZone.prototype.getPreviousTransition() 2021-10-30 16:32:20 +02:00
TimeZone.prototype.id.js LibJS: Only allow TimeZone this value in Temporal.TimeZone#id 2021-12-19 00:13:01 +00:00
TimeZone.prototype.toJSON.js LibJS: Only allow TimeZone this value in Temporal.TimeZone#toJSON 2021-12-19 00:13:01 +00:00
TimeZone.prototype.toString.js LibJS: Support non-UTC time zones in Temporal :^) 2022-01-11 22:17:39 +01:00