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:
parent
c7265ee6bd
commit
6cf64d0f09
2 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue