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:
parent
35faf50941
commit
d9f5e2d461
3 changed files with 11 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue