mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 04:52:23 +00:00
LibJS: Replace GlobalObject with VM in RegExp AOs [Part 9/19]
This commit is contained in:
parent
d74f8039eb
commit
f0b793db74
Notes:
sideshowbarker
2024-07-17 08:00:23 +09:00
Author: https://github.com/linusg
Commit: f0b793db74
Pull-request: https://github.com/SerenityOS/serenity/pull/14973
Reviewed-by: https://github.com/davidot ✅
8 changed files with 40 additions and 44 deletions
|
@ -14,7 +14,7 @@
|
|||
|
||||
namespace JS {
|
||||
|
||||
ThrowCompletionOr<RegExpObject*> regexp_create(GlobalObject&, Value pattern, Value flags);
|
||||
ThrowCompletionOr<RegExpObject*> regexp_create(VM&, Value pattern, Value flags);
|
||||
|
||||
Result<regex::RegexOptions<ECMAScriptFlags>, String> regex_flags_from_string(StringView flags);
|
||||
struct ParseRegexPatternError {
|
||||
|
@ -42,7 +42,7 @@ public:
|
|||
RegExpObject(Object& prototype);
|
||||
RegExpObject(Regex<ECMA262> regex, String pattern, String flags, Object& prototype);
|
||||
|
||||
ThrowCompletionOr<RegExpObject*> regexp_initialize(GlobalObject&, Value pattern, Value flags);
|
||||
ThrowCompletionOr<RegExpObject*> regexp_initialize(VM&, Value pattern, Value flags);
|
||||
String escape_regexp_pattern() const;
|
||||
|
||||
virtual void initialize(Realm&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue