mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 00:56:39 +00:00
LibJS: Convert the RegExpCreate AO to ThrowCompletionOr
This commit is contained in:
parent
d9f5e2d461
commit
844be7a0a5
Notes:
sideshowbarker
2024-07-18 01:59:40 +09:00
Author: https://github.com/IdanHo
Commit: 844be7a0a5
Pull-request: https://github.com/SerenityOS/serenity/pull/10586
5 changed files with 11 additions and 17 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue