summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/RegExpObject.h
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-10-23 03:49:29 +0300
committerAndreas Kling <kling@serenityos.org>2021-10-23 18:01:51 +0200
commitd9f5e2d461b5559695bef56c14b063ac2b152fa1 (patch)
tree35250a30c07dd1562ee708359fcc78d963d766c3 /Userland/Libraries/LibJS/Runtime/RegExpObject.h
parent35faf509413163b5c05d394a70a8c4c37bb1c6d6 (diff)
downloadserenity-d9f5e2d461b5559695bef56c14b063ac2b152fa1.zip
LibJS: Convert the RegExpInitialize AO to ThrowCompletionOr
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/RegExpObject.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/RegExpObject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/RegExpObject.h b/Userland/Libraries/LibJS/Runtime/RegExpObject.h
index 40d0680daf..d130a656cc 100644
--- a/Userland/Libraries/LibJS/Runtime/RegExpObject.h
+++ b/Userland/Libraries/LibJS/Runtime/RegExpObject.h
@@ -33,7 +33,7 @@ public:
RegExpObject(Object& prototype);
RegExpObject(Regex<ECMA262> regex, String pattern, String flags, Object& prototype);
- RegExpObject* regexp_initialize(GlobalObject&, Value pattern, Value flags);
+ ThrowCompletionOr<RegExpObject*> regexp_initialize(GlobalObject&, Value pattern, Value flags);
String escape_regexp_pattern() const;
virtual void initialize(GlobalObject&) override;