mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
LibJS: Fix build (GlobalObject::add_constructor not visible in LibWeb)
This commit is contained in:
parent
99be27b4a1
commit
c00ff4ba62
2 changed files with 10 additions and 9 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue