1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:37:35 +00:00

LibJS: Convert the RegExpInitialize AO to ThrowCompletionOr

This commit is contained in:
Idan Horowitz 2021-10-23 03:49:29 +03:00 committed by Andreas Kling
parent 35faf50941
commit d9f5e2d461
3 changed files with 11 additions and 15 deletions

View file

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