1
Fork 0
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:
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

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