LibJS: Replace GlobalObject with VM in RegExp AOs [Part 9/19]

This commit is contained in:
Linus Groh 2022-08-21 16:14:51 +01:00
commit f0b793db74
Notes: sideshowbarker 2024-07-17 08:00:23 +09:00
8 changed files with 40 additions and 44 deletions

View file

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