LibJS: Simplify Cell::initialize()

Remove the Interpreter& argument and pass only GlobalObject&. We can
find everything we need via the global object anyway.
This commit is contained in:
Andreas Kling 2020-07-22 17:50:18 +02:00
parent 299824de73
commit aaf6014ae1
Notes: sideshowbarker 2024-07-19 04:39:40 +09:00
82 changed files with 161 additions and 160 deletions

View file

@ -63,11 +63,11 @@ ScriptFunction::ScriptFunction(GlobalObject& global_object, const FlyString& nam
{
}
void ScriptFunction::initialize(Interpreter& interpreter, GlobalObject& global_object)
void ScriptFunction::initialize(GlobalObject& global_object)
{
Function::initialize(interpreter, global_object);
Function::initialize(global_object);
if (!m_is_arrow_function) {
Object* prototype = Object::create_empty(interpreter, global_object);
Object* prototype = Object::create_empty(global_object);
prototype->define_property("constructor", this, Attribute::Writable | Attribute::Configurable);
define_property("prototype", prototype, 0);
}