mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02:00
LibJS: Split more native object constructors into construct/initialize
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 05:31:40 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/06e29fac57f
@@ -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