From 0eeb7f67a7ff713162a653c5da132d6bdb763a51 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 24 Jun 2021 13:29:25 +0200 Subject: [PATCH] LibJS: Don't use m_ prefix for argument name in ScriptFunction --- Userland/Libraries/LibJS/Runtime/ScriptFunction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibJS/Runtime/ScriptFunction.cpp b/Userland/Libraries/LibJS/Runtime/ScriptFunction.cpp index 9f657e8add..86fe879641 100644 --- a/Userland/Libraries/LibJS/Runtime/ScriptFunction.cpp +++ b/Userland/Libraries/LibJS/Runtime/ScriptFunction.cpp @@ -50,13 +50,13 @@ ScriptFunction* ScriptFunction::create(GlobalObject& global_object, const FlyStr return global_object.heap().allocate(global_object, global_object, name, body, move(parameters), m_function_length, parent_scope, *prototype, kind, is_strict, is_arrow_function); } -ScriptFunction::ScriptFunction(GlobalObject& global_object, const FlyString& name, const Statement& body, Vector parameters, i32 m_function_length, EnvironmentRecord* parent_scope, Object& prototype, FunctionKind kind, bool is_strict, bool is_arrow_function) +ScriptFunction::ScriptFunction(GlobalObject& global_object, const FlyString& name, const Statement& body, Vector parameters, i32 function_length, EnvironmentRecord* parent_scope, Object& prototype, FunctionKind kind, bool is_strict, bool is_arrow_function) : Function(is_arrow_function ? vm().this_value(global_object) : Value(), {}, prototype) , m_name(name) , m_body(body) , m_parameters(move(parameters)) , m_parent_scope(parent_scope) - , m_function_length(m_function_length) + , m_function_length(function_length) , m_kind(kind) , m_is_strict(is_strict) , m_is_arrow_function(is_arrow_function)