mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-30 21:28:59 +00:00
LibJS: Convert NumberConstructor functions to ThrowCompletionOr
This commit is contained in:
parent
08fb31087b
commit
2c6955462e
Notes:
sideshowbarker
2024-07-18 01:47:06 +09:00
Author: https://github.com/IdanHo
Commit: 2c6955462e
Pull-request: https://github.com/SerenityOS/serenity/pull/10675
Reviewed-by: https://github.com/linusg ✅
2 changed files with 16 additions and 25 deletions
|
@ -24,10 +24,10 @@ public:
|
|||
private:
|
||||
virtual bool has_constructor() const override { return true; }
|
||||
|
||||
JS_DECLARE_OLD_NATIVE_FUNCTION(is_finite);
|
||||
JS_DECLARE_OLD_NATIVE_FUNCTION(is_integer);
|
||||
JS_DECLARE_OLD_NATIVE_FUNCTION(is_nan);
|
||||
JS_DECLARE_OLD_NATIVE_FUNCTION(is_safe_integer);
|
||||
JS_DECLARE_NATIVE_FUNCTION(is_finite);
|
||||
JS_DECLARE_NATIVE_FUNCTION(is_integer);
|
||||
JS_DECLARE_NATIVE_FUNCTION(is_nan);
|
||||
JS_DECLARE_NATIVE_FUNCTION(is_safe_integer);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue