mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +00:00
LibJS: Switch is_array to ThrowCompletionOr
This commit is contained in:
parent
0b9e633482
commit
1db7e096e2
Notes:
sideshowbarker
2024-07-18 03:31:15 +09:00
Author: https://github.com/IdanHo
Commit: 1db7e096e2
Pull-request: https://github.com/SerenityOS/serenity/pull/10190
Reviewed-by: https://github.com/davidot
Reviewed-by: https://github.com/linusg ✅
6 changed files with 15 additions and 26 deletions
|
@ -62,7 +62,7 @@ public:
|
|||
bool is_bigint() const { return m_type == Type::BigInt; };
|
||||
bool is_nullish() const { return is_null() || is_undefined(); }
|
||||
bool is_cell() const { return is_string() || is_accessor() || is_object() || is_bigint() || is_symbol(); }
|
||||
bool is_array(GlobalObject&) const;
|
||||
ThrowCompletionOr<bool> is_array(GlobalObject&) const;
|
||||
bool is_function() const;
|
||||
bool is_constructor() const;
|
||||
bool is_regexp(GlobalObject&) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue