mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-21 15:14:13 +00:00
LibJS: Split more native object constructors into construct/initialize
This commit is contained in:
@@ -37,8 +37,12 @@
|
||||
|
||||
namespace JS {
|
||||
|
||||
JSONObject::JSONObject()
|
||||
: Object(interpreter().global_object().object_prototype())
|
||||
JSONObject::JSONObject(GlobalObject& global_object)
|
||||
: Object(global_object.object_prototype())
|
||||
{
|
||||
}
|
||||
|
||||
void JSONObject::initialize(Interpreter&, GlobalObject&)
|
||||
{
|
||||
u8 attr = Attribute::Writable | Attribute::Configurable;
|
||||
define_native_function("stringify", stringify, 3, attr);
|
||||
|
||||
Reference in New Issue
Block a user