1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:17:36 +00:00

LibJS: Make the RegExpExec abstraction publically available

For RegExpStringIterator, this will be needed outside of the RegExp
prototype.
This commit is contained in:
Timothy Flynn 2021-07-15 08:56:55 -04:00 committed by Linus Groh
parent c7265ee6bd
commit 6cf64d0f09
2 changed files with 3 additions and 1 deletions

View file

@ -292,7 +292,7 @@ static Value regexp_builtin_exec(GlobalObject& global_object, RegExpObject& rege
}
// 22.2.5.2.1 RegExpExec ( R, S ), https://tc39.es/ecma262/#sec-regexpexec
static Value regexp_exec(GlobalObject& global_object, Object& regexp_object, String const& string)
Value regexp_exec(GlobalObject& global_object, Object& regexp_object, String const& string)
{
auto& vm = global_object.vm();

View file

@ -10,6 +10,8 @@
namespace JS {
Value regexp_exec(GlobalObject& global_object, Object& regexp_object, String const& string);
class RegExpPrototype final : public Object {
JS_OBJECT(RegExpPrototype, Object);