diff options
author | Andreas Kling <kling@serenityos.org> | 2020-09-29 16:45:24 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-29 16:45:39 +0200 |
commit | be055b3ddd7fc65702b2938b13fea3ba6a1aba45 (patch) | |
tree | eed24736e739ea3cce27b8e52fc8eb49018c8aa9 /Libraries/LibJS/AST.cpp | |
parent | 3df604ad120fe37cb137542a841a29328d03ddf7 (diff) | |
download | serenity-be055b3ddd7fc65702b2938b13fea3ba6a1aba45.zip |
LibJS: Reduce use of Interpreter in Reference
Diffstat (limited to 'Libraries/LibJS/AST.cpp')
-rw-r--r-- | Libraries/LibJS/AST.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibJS/AST.cpp b/Libraries/LibJS/AST.cpp index 39485a8203..cedab231cd 100644 --- a/Libraries/LibJS/AST.cpp +++ b/Libraries/LibJS/AST.cpp @@ -1286,7 +1286,7 @@ Value AssignmentExpression::execute(Interpreter& interpreter, GlobalObject& glob return {}; } update_function_name(rhs_result, get_function_name(global_object, reference.name().to_value(interpreter.vm()))); - reference.put(interpreter, global_object, rhs_result); + reference.put(global_object, rhs_result); if (interpreter.exception()) return {}; @@ -1298,7 +1298,7 @@ Value UpdateExpression::execute(Interpreter& interpreter, GlobalObject& global_o auto reference = m_argument->to_reference(interpreter, global_object); if (interpreter.exception()) return {}; - auto old_value = reference.get(interpreter, global_object); + auto old_value = reference.get(global_object); if (interpreter.exception()) return {}; old_value = old_value.to_numeric(global_object); @@ -1323,7 +1323,7 @@ Value UpdateExpression::execute(Interpreter& interpreter, GlobalObject& global_o ASSERT_NOT_REACHED(); } - reference.put(interpreter, global_object, new_value); + reference.put(global_object, new_value); if (interpreter.exception()) return {}; return m_prefixed ? new_value : old_value; |