1
Fork 0
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:
Idan Horowitz 2021-09-23 20:10:20 +03:00
parent 1db7e096e2
commit a90107b02a
4 changed files with 9 additions and 23 deletions

View file

@ -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()); }