1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:47:36 +00:00

LibJS: Start implementing Temporal.Duration

This patch adds the Duration object itself, its constructor and
prototype (currently empty), and three required abstract operations.
This commit is contained in:
Linus Groh 2021-07-15 23:20:43 +01:00
parent 71234b3716
commit 7921d8ba91
13 changed files with 377 additions and 1 deletions

View file

@ -14,10 +14,10 @@ namespace JS::Temporal {
class TimeZone final : public Object {
JS_OBJECT(TimeZone, Object);
public:
// Needs to store values in the range -8.64 * 10^13 to 8.64 * 10^13
using OffsetType = double;
public:
explicit TimeZone(String identifier, Object& prototype);
virtual ~TimeZone() override = default;