diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-07-11 21:19:19 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-07-12 19:05:17 +0100 |
commit | 84403ab42324fbc79b6e255ce387fc03924e0a59 (patch) | |
tree | d1aa49e284c306a6f9f3819d56e9e036a04d06f8 /Userland/Libraries/LibJS/Runtime/Temporal/InstantConstructor.h | |
parent | 33cf6274e87ac7fcc4eadd07cc453694b98bd8e8 (diff) | |
download | serenity-84403ab42324fbc79b6e255ce387fc03924e0a59.zip |
LibJS: Add Temporal.Instant.from()
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/InstantConstructor.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Temporal/InstantConstructor.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/InstantConstructor.h b/Userland/Libraries/LibJS/Runtime/Temporal/InstantConstructor.h index 1a7a700234..310e5c7c8e 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/InstantConstructor.h +++ b/Userland/Libraries/LibJS/Runtime/Temporal/InstantConstructor.h @@ -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); |