LibJS: Convert is_regexp to ThrowCompletionOr

This commit is contained in:
Idan Horowitz 2021-09-23 20:10:20 +03:00
commit a90107b02a
Notes: sideshowbarker 2024-07-18 03:31:10 +09:00
4 changed files with 9 additions and 23 deletions

View file

@ -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;