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

LibJS: Use OrdinaryCreateFromConstructor() in a bunch of constructors

Resolves various FIXMEs :^)
This commit is contained in:
Linus Groh 2021-06-20 01:09:39 +01:00 committed by Andreas Kling
parent e5753443ae
commit 8f6ac0db1c
16 changed files with 173 additions and 102 deletions

View file

@ -55,6 +55,7 @@ Value RegExpConstructor::construct(Function&)
if (vm.exception())
return {};
}
// FIXME: Use RegExpAlloc (which uses OrdinaryCreateFromConstructor)
return RegExpObject::create(global_object(), pattern, flags);
}