diff options
author | Andreas Kling <kling@serenityos.org> | 2021-06-24 13:29:25 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-24 13:29:25 +0200 |
commit | 0eeb7f67a7ff713162a653c5da132d6bdb763a51 (patch) | |
tree | 24539f56f907508556d00751ca971a33c36a646f /Userland | |
parent | ce2747692d3d8b0b630f55367017a0891a0cc6af (diff) | |
download | serenity-0eeb7f67a7ff713162a653c5da132d6bdb763a51.zip |
LibJS: Don't use m_ prefix for argument name in ScriptFunction
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/ScriptFunction.cpp | 4 |
1 files 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<ScriptFunction>(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<FunctionNode::Parameter> 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<FunctionNode::Parameter> 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) |