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

LibJS: Convert Temporal.Instant functions to ThrowCompletionOr

This commit is contained in:
Linus Groh 2021-10-21 19:56:52 +01:00
parent 5e9e3f9dc8
commit 149231d47d
4 changed files with 153 additions and 167 deletions

View file

@ -24,12 +24,12 @@ public:
private:
virtual bool has_constructor() const override { return true; }
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);
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);
};
}