mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
LibJS: Remove accidental dead code
This commit is contained in:
parent
eedee151ab
commit
1d19649a19
Notes:
sideshowbarker
2024-07-18 09:58:38 +09:00
Author: https://github.com/trflynn89
Commit: 1d19649a19
Pull-request: https://github.com/SerenityOS/serenity/pull/8584
Reviewed-by: https://github.com/linusg
1 changed files with 0 additions and 4 deletions
|
@ -107,10 +107,6 @@ static Value regexp_builtin_exec(GlobalObject& global_object, RegExpObject& rege
|
||||||
// FIXME: This should try using internal slots [[RegExpMatcher]], [[OriginalFlags]], etc.
|
// FIXME: This should try using internal slots [[RegExpMatcher]], [[OriginalFlags]], etc.
|
||||||
auto& vm = global_object.vm();
|
auto& vm = global_object.vm();
|
||||||
|
|
||||||
auto str = vm.argument(0).to_string(global_object);
|
|
||||||
if (vm.exception())
|
|
||||||
return {};
|
|
||||||
|
|
||||||
// RegExps without "global" and "sticky" always start at offset 0.
|
// RegExps without "global" and "sticky" always start at offset 0.
|
||||||
if (!regexp_object.regex().options().has_flag_set((ECMAScriptFlags)regex::AllFlags::Internal_Stateful)) {
|
if (!regexp_object.regex().options().has_flag_set((ECMAScriptFlags)regex::AllFlags::Internal_Stateful)) {
|
||||||
regexp_object.set(vm.names.lastIndex, Value(0), true);
|
regexp_object.set(vm.names.lastIndex, Value(0), true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue