Linus Groh
ed9d37bd40
LibJS: Implement Temporal.Calendar.prototype.yearMonthFromFields()
2021-08-16 14:10:41 +01:00
Linus Groh
1549845389
LibJS: Implement Temporal.PlainMonthDay.prototype.getISOFields()
2021-08-15 10:36:36 +01:00
Linus Groh
7fb05eb878
LibJS: Implement Temporal.PlainMonthDay.prototype.valueOf()
2021-08-15 10:36:36 +01:00
Linus Groh
c2ed3ad66b
LibJS: Implement Temporal.PlainMonthDay.prototype.day
2021-08-15 10:36:36 +01:00
Linus Groh
9551aa17d3
LibJS: Implement Temporal.PlainMonthDay.prototype.monthCode
2021-08-15 10:36:36 +01:00
Linus Groh
1382be1707
LibJS: Implement Temporal.PlainMonthDay.prototype.calendar
2021-08-15 10:36:36 +01:00
Linus Groh
37b5a0715e
LibJS: Implement Temporal.PlainMonthDay.prototype[@@toStringTag]
2021-08-15 10:36:36 +01:00
Linus Groh
0cf526d0c4
LibJS: Handle PlainMonthDay in the Calendar.prototype getters
2021-08-15 10:36:36 +01:00
Linus Groh
b76bae13fd
LibJS: Handle PlainMonthDay in ISO{Year,Month,MonthCode,Day}
2021-08-15 10:36:36 +01:00
Linus Groh
ec00d4729a
LibJS: Handle PlainMonthDay in GetTemporalCalendarWithISODefault
2021-08-15 10:36:36 +01:00
Linus Groh
1e54e37228
LibJS: Handle PlainMonthDay in ToTemporalCalendar
2021-08-15 10:36:36 +01:00
Linus Groh
be07e2e91b
LibJS: Start implementing Temporal.PlainMonthDay
...
This commit adds the PlainMonthDay object itself, its constructor and
prototype (currently empty), and the CreateTemporalMonthDay abstract
operations.
2021-08-15 10:36:36 +01:00
Andreas Kling
286a7ecd92
LibJS: Call base class visit_edges() in various Temporal objects
...
When overriding visit_edges() in a JS::Object subclass, we must make
sure to call the base class visit_edges(), or the object's Shape (and
any properties) will not get marked.
2021-08-14 20:12:22 +02:00
davidot
151447bdf7
LibJS: Move Object::invoke to Value::invoke and fix it for primitives
...
This is a tiny difference and only changes anything for primitives in
strict mode. However this is tested in test262 and can be noticed by
overriding toString of primitive values.
This does now require one to wrap an object in a Value to call invoke
but all code using invoke has been migrated.
2021-08-09 17:33:14 +01:00
Linus Groh
312946059b
LibJS+Spreadsheet: Use js_string(VM&, ...) overload more
2021-08-08 21:32:58 +01:00
Linus Groh
7d8c182359
LibJS: Implement Temporal.PlainYearMonth.prototype.getISOFields()
2021-08-08 17:45:06 +01:00
Linus Groh
5a260fcad1
LibJS: Implement Temporal.PlainYearMonth.prototype.valueOf()
2021-08-08 17:45:06 +01:00
Linus Groh
d9ed0f1f47
LibJS: Implement Temporal.PlainYearMonth.prototype.inLeapYear
2021-08-08 17:45:06 +01:00
Linus Groh
3592a748b6
LibJS: Implement Temporal.PlainYearMonth.prototype.monthsInYear
2021-08-08 17:45:06 +01:00
Linus Groh
703eb1f7b4
LibJS: Implement Temporal.PlainYearMonth.prototype.daysInMonth
2021-08-08 17:45:06 +01:00
Linus Groh
1f1d7144bf
LibJS: Implement Temporal.PlainYearMonth.prototype.daysInYear
2021-08-08 17:45:06 +01:00
Linus Groh
5ec70792fd
LibJS: Implement Temporal.PlainYearMonth.prototype.monthCode
2021-08-08 17:45:06 +01:00
Linus Groh
0edec6578b
LibJS: Implement Temporal.PlainYearMonth.prototype.month
2021-08-08 17:45:06 +01:00
Linus Groh
c947ba9ed9
LibJS: Implement Temporal.PlainYearMonth.prototype.year
2021-08-08 17:45:06 +01:00
Linus Groh
71eca69d7c
LibJS: Implement Temporal.PlainYearMonth.prototype.calendar
2021-08-08 17:45:06 +01:00
Linus Groh
d8e835d22f
LibJS: Implement Temporal.PlainYearMonth.prototype[@@toStringTag]
2021-08-08 17:45:06 +01:00
Linus Groh
4d3af45efb
LibJS: Handle PlainYearMonth in the Calendar.prototype getters
2021-08-08 17:45:06 +01:00
Linus Groh
e2f016dc81
LibJS: Handle PlainYearMonth in ISO{Year,Month,MonthCode,Day}
2021-08-08 17:45:06 +01:00
Linus Groh
4ba5df7145
LibJS: Handle PlainYearMonth in GetTemporalCalendarWithISODefault
2021-08-08 17:45:06 +01:00
Linus Groh
2aec6653c4
LibJS: Handle PlainYearMonth in ToTemporalCalendar
2021-08-08 17:45:06 +01:00
Linus Groh
0a8edd5ce7
LibJS: Start implementing Temporal.PlainYearMonth
...
This commit adds the PlainYearMonth object itself, its constructor and
prototype (currently empty), and the CreateTemporalYearMonth and
ISOYearMonthWithinLimits abstract operations.
2021-08-08 17:45:06 +01:00
Linus Groh
5b12542d39
LibJS: Fix Vector<Value> => MarkedValueList in calendar_fields()
...
We need to ensure the temporary PrimitiveString cells don't get GC'd.
2021-08-08 17:45:06 +01:00
Linus Groh
53c44bea00
LibJS: Mark getters of more Temporal objects [[nodiscard]]
...
PlainDate, PlainTime, and PlainDateTime already do this. All the others
should as well.
2021-08-08 17:45:06 +01:00
Linus Groh
16c38788c3
LibJS: Add missing spec links
2021-08-08 11:04:30 +01:00
Linus Groh
6852ba4d34
LibJS: Implement Temporal.Instant.prototype.subtract()
2021-08-07 13:10:35 +01:00
Linus Groh
b38f1fb071
LibJS: Implement Temporal.Instant.prototype.add()
2021-08-07 13:10:35 +01:00
Linus Groh
8ffad70504
LibJS: Add missing spec link to Temporal.Instant.prototype.round()
2021-08-07 13:10:35 +01:00
Linus Groh
f12152f77e
LibJS: Reflect an editorial change in the Temporal spec
...
See: fb9b550
2021-08-07 01:21:39 +01:00
Linus Groh
5d536c7fbc
LibJS: Reflect infallibility editorial changes in the Temporal spec
...
See: de918c9
2021-08-07 01:15:45 +01:00
Linus Groh
b7b23d05d5
LibJS: Implement Temporal.ZonedDateTime.prototype.getISOFields()
2021-08-05 23:15:27 +01:00
Linus Groh
82ab5da4db
LibJS: Implement Temporal.ZonedDateTime.prototype.toPlainDateTime()
2021-08-05 23:15:27 +01:00
Linus Groh
6ce631b023
LibJS: Implement Temporal.ZonedDateTime.prototype.toPlainTime()
2021-08-05 23:15:27 +01:00
Linus Groh
b4ea4e86a7
LibJS: Implement Temporal.ZonedDateTime.prototype.toPlainDate()
2021-08-05 23:15:27 +01:00
Linus Groh
96a0c201d5
LibJS: Implement Temporal.ZonedDateTime.prototype.toInstant()
2021-08-05 23:15:27 +01:00
Linus Groh
20300bd7c4
LibJS: Implement Temporal.ZonedDateTime.prototype.valueOf()
2021-08-05 23:15:27 +01:00
Linus Groh
6c345c8107
LibJS: Implement Temporal.ZonedDateTime.prototype.offset
2021-08-05 19:19:40 +02:00
Linus Groh
f937e9b966
LibJS: Implement Temporal.ZonedDateTime.prototype.offsetNanoseconds
2021-08-05 19:19:40 +02:00
Linus Groh
dd36593c72
LibJS: Implement Temporal.ZonedDateTime.prototype.inLeapYear
2021-08-05 19:19:40 +02:00
Linus Groh
5a7db1b5f4
LibJS: Implement Temporal.ZonedDateTime.prototype.monthsInYear
2021-08-05 19:19:40 +02:00
Linus Groh
204ba01416
LibJS: Implement Temporal.ZonedDateTime.prototype.daysInYear
2021-08-05 19:19:40 +02:00