LibJS: Fix build (GlobalObject::add_constructor not visible in LibWeb)

This commit is contained in:
Andreas Kling 2020-05-02 20:43:44 +02:00
commit c00ff4ba62
Notes: sideshowbarker 2024-07-19 07:02:10 +09:00
2 changed files with 10 additions and 9 deletions

View file

@ -57,15 +57,6 @@
namespace JS {
template<typename ConstructorType>
void GlobalObject::add_constructor(const FlyString& property_name, ConstructorType*& constructor, Object& prototype)
{
constructor = heap().allocate<ConstructorType>();
constructor->put("name", js_string(heap(), property_name), Attribute::Configurable);
prototype.put("constructor", constructor);
put(property_name, constructor, Attribute::Writable | Attribute::Configurable);
}
GlobalObject::GlobalObject()
: Object(nullptr)
{