mirror of
https://github.com/RGBCube/serenity
synced 2025-05-24 01:15:07 +00:00
LibWeb: Split JS wrapper constructors into construct/initialize
This commit is contained in:
parent
06e29fac57
commit
03da70c7d0
31 changed files with 107 additions and 55 deletions
|
@ -35,8 +35,12 @@
|
|||
namespace Web {
|
||||
namespace Bindings {
|
||||
|
||||
LocationObject::LocationObject()
|
||||
: Object(interpreter().global_object().object_prototype())
|
||||
LocationObject::LocationObject(JS::GlobalObject& global_object)
|
||||
: Object(global_object.object_prototype())
|
||||
{
|
||||
}
|
||||
|
||||
void LocationObject::initialize(JS::Interpreter&, JS::GlobalObject&)
|
||||
{
|
||||
u8 attr = JS::Attribute::Writable | JS::Attribute::Enumerable;
|
||||
define_native_property("href", href_getter, href_setter, attr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue