diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-10-19 20:18:01 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-10-20 12:27:19 +0100 |
commit | 20163c058485dc524402c46f21bbe65a860bf9c5 (patch) | |
tree | 35e6942b65f8138ee073efcec6dae987d9ab0377 /Userland/Libraries/LibJS/Runtime/Temporal/InstantConstructor.h | |
parent | 3355b52cca1e1a8478ea5dbbd193120af4c83ca6 (diff) | |
download | serenity-20163c058485dc524402c46f21bbe65a860bf9c5.zip |
LibJS: Add ThrowCompletionOr versions of the JS native function macros
The old versions were renamed to JS_DECLARE_OLD_NATIVE_FUNCTION and
JS_DEFINE_OLD_NATIVE_FUNCTION, and will be eventually removed once all
native functions were converted to the new format.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/InstantConstructor.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Temporal/InstantConstructor.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/InstantConstructor.h b/Userland/Libraries/LibJS/Runtime/Temporal/InstantConstructor.h index 310e5c7c8e..cdce6d7d97 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/InstantConstructor.h +++ b/Userland/Libraries/LibJS/Runtime/Temporal/InstantConstructor.h @@ -24,12 +24,12 @@ 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); - JS_DECLARE_NATIVE_FUNCTION(from_epoch_nanoseconds); - JS_DECLARE_NATIVE_FUNCTION(compare); + JS_DECLARE_OLD_NATIVE_FUNCTION(from); + JS_DECLARE_OLD_NATIVE_FUNCTION(from_epoch_seconds); + JS_DECLARE_OLD_NATIVE_FUNCTION(from_epoch_milliseconds); + JS_DECLARE_OLD_NATIVE_FUNCTION(from_epoch_microseconds); + JS_DECLARE_OLD_NATIVE_FUNCTION(from_epoch_nanoseconds); + JS_DECLARE_OLD_NATIVE_FUNCTION(compare); }; } |