LibJS: Convert Temporal.Instant functions to ThrowCompletionOr

This commit is contained in:
Linus Groh 2021-10-21 19:56:52 +01:00
commit 149231d47d
Notes: sideshowbarker 2024-07-18 02:04:39 +09:00
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);
};
}