mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 02:59:45 +00:00
LibJS: Convert is_regexp to ThrowCompletionOr
This commit is contained in:
parent
1db7e096e2
commit
a90107b02a
Notes:
sideshowbarker
2024-07-18 03:31:10 +09:00
Author: https://github.com/IdanHo
Commit: a90107b02a
Pull-request: https://github.com/SerenityOS/serenity/pull/10190
Reviewed-by: https://github.com/davidot
Reviewed-by: https://github.com/linusg ✅
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