mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +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
|
@ -242,7 +242,7 @@ bool Value::is_constructor() const
|
|||
}
|
||||
|
||||
// 7.2.8 IsRegExp ( argument ), https://tc39.es/ecma262/#sec-isregexp
|
||||
bool Value::is_regexp(GlobalObject& global_object) const
|
||||
ThrowCompletionOr<bool> Value::is_regexp(GlobalObject& global_object) const
|
||||
{
|
||||
if (!is_object())
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue