mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 11:55:08 +00:00
LibJS: Split more native object constructors into construct/initialize
This commit is contained in:
parent
9610d18ebb
commit
06e29fac57
16 changed files with 64 additions and 33 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue