mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibJS: Split more native object constructors into construct/initialize
This commit is contained in:
parent
9610d18ebb
commit
06e29fac57
Notes:
sideshowbarker
2024-07-19 05:31:40 +09:00
Author: https://github.com/awesomekling
Commit: 06e29fac57
16 changed files with 64 additions and 33 deletions
|
@ -35,8 +35,12 @@
|
|||
|
||||
namespace JS {
|
||||
|
||||
ConsoleObject::ConsoleObject()
|
||||
: Object(interpreter().global_object().object_prototype())
|
||||
ConsoleObject::ConsoleObject(GlobalObject& global_object)
|
||||
: Object(global_object.object_prototype())
|
||||
{
|
||||
}
|
||||
|
||||
void ConsoleObject::initialize(Interpreter&, GlobalObject&)
|
||||
{
|
||||
define_native_function("log", log);
|
||||
define_native_function("debug", debug);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue