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

LibJS: Add Temporal.Instant.from()

This commit is contained in:
Idan Horowitz 2021-07-11 21:19:19 +03:00 committed by Linus Groh
parent 33cf6274e8
commit 84403ab423
3 changed files with 34 additions and 0 deletions

View file

@ -24,6 +24,7 @@ public:
private:
virtual bool has_constructor() const override { return true; }
JS_DECLARE_NATIVE_FUNCTION(from);
JS_DECLARE_NATIVE_FUNCTION(from_epoch_seconds);
JS_DECLARE_NATIVE_FUNCTION(from_epoch_milliseconds);
JS_DECLARE_NATIVE_FUNCTION(from_epoch_microseconds);