mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibJS: Replace GlobalObject with VM in Value AOs [Part 4/19]
This is where the fun begins. :^)
This commit is contained in:
parent
f6c4a0f5d0
commit
a022e548b8
Notes:
sideshowbarker
2024-07-17 08:00:44 +09:00
Author: https://github.com/linusg
Commit: a022e548b8
Pull-request: https://github.com/SerenityOS/serenity/pull/14973
Reviewed-by: https://github.com/davidot ✅
129 changed files with 1230 additions and 1325 deletions
|
@ -162,7 +162,7 @@ ThrowCompletionOr<RegExpObject*> RegExpObject::regexp_initialize(GlobalObject& g
|
|||
if (flags.is_undefined()) {
|
||||
f = String::empty();
|
||||
} else {
|
||||
f = TRY(flags.to_string(global_object));
|
||||
f = TRY(flags.to_string(vm));
|
||||
}
|
||||
|
||||
String original_pattern;
|
||||
|
@ -172,7 +172,7 @@ ThrowCompletionOr<RegExpObject*> RegExpObject::regexp_initialize(GlobalObject& g
|
|||
original_pattern = String::empty();
|
||||
parsed_pattern = String::empty();
|
||||
} else {
|
||||
original_pattern = TRY(pattern.to_string(global_object));
|
||||
original_pattern = TRY(pattern.to_string(vm));
|
||||
bool unicode = f.find('u').has_value();
|
||||
bool unicode_sets = f.find('v').has_value();
|
||||
parsed_pattern = TRY(parse_regex_pattern(vm, original_pattern, unicode, unicode_sets));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue