1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:07:36 +00:00

LibJS: Convert the RegExpCreate AO to ThrowCompletionOr

This commit is contained in:
Idan Horowitz 2021-10-23 03:52:23 +03:00 committed by Andreas Kling
parent d9f5e2d461
commit 844be7a0a5
5 changed files with 11 additions and 17 deletions

View file

@ -14,7 +14,7 @@
namespace JS {
RegExpObject* regexp_create(GlobalObject&, Value pattern, Value flags);
ThrowCompletionOr<RegExpObject*> regexp_create(GlobalObject&, Value pattern, Value flags);
Result<regex::RegexOptions<ECMAScriptFlags>, String> regex_flags_from_string(StringView flags);
String parse_regex_pattern(StringView pattern, bool unicode);