mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:37:44 +00:00
LibJS: Convert is_regexp to ThrowCompletionOr
This commit is contained in:
parent
1db7e096e2
commit
a90107b02a
4 changed files with 9 additions and 23 deletions
|
@ -65,7 +65,7 @@ public:
|
|||
ThrowCompletionOr<bool> is_array(GlobalObject&) const;
|
||||
bool is_function() const;
|
||||
bool is_constructor() const;
|
||||
bool is_regexp(GlobalObject&) const;
|
||||
ThrowCompletionOr<bool> is_regexp(GlobalObject&) const;
|
||||
|
||||
bool is_nan() const { return is_number() && __builtin_isnan(as_double()); }
|
||||
bool is_infinity() const { return is_number() && __builtin_isinf(as_double()); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue