mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibJS: Stop using a native property for RegExp's lastIndex property
This is not a functional change, the exposed (incorrect) behaviour is the same as it was before, this simply removes the last user of NativeProperties, allowing us to remove them completely from LibJS.
This commit is contained in:
committed by
Linus Groh
parent
64b1740913
commit
306d59276a
@@ -1993,7 +1993,7 @@ void RegExpLiteral::dump(int indent) const
|
||||
Value RegExpLiteral::execute(Interpreter& interpreter, GlobalObject& global_object) const
|
||||
{
|
||||
InterpreterNodeScope node_scope { interpreter, *this };
|
||||
return RegExpObject::create(global_object, pattern(), flags());
|
||||
return regexp_create(global_object, js_string(interpreter.heap(), pattern()), js_string(interpreter.heap(), flags()));
|
||||
}
|
||||
|
||||
void ArrayExpression::dump(int indent) const
|
||||
|
||||
Reference in New Issue
Block a user