summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/AST.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-20 16:47:31 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-20 17:50:48 +0200
commit32c121a8f7e1f0ef0bb5f744a6836a9e4b2e6bef (patch)
tree47d047d99316b118ab73d113559fbd3cabf73355 /Libraries/LibJS/AST.cpp
parent8d56e6103e3e0a461e69dcb36aecb19f75731a5f (diff)
downloadserenity-32c121a8f7e1f0ef0bb5f744a6836a9e4b2e6bef.zip
LibJS: Pass GlobalObject& to Reference get/put
Diffstat (limited to 'Libraries/LibJS/AST.cpp')
-rw-r--r--Libraries/LibJS/AST.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibJS/AST.cpp b/Libraries/LibJS/AST.cpp
index 27d3c8cb9d..308c951914 100644
--- a/Libraries/LibJS/AST.cpp
+++ b/Libraries/LibJS/AST.cpp
@@ -1110,7 +1110,7 @@ Value AssignmentExpression::execute(Interpreter& interpreter, GlobalObject& glob
return interpreter.throw_exception<ReferenceError>(ErrorType::InvalidLeftHandAssignment);
update_function_name(rhs_result, reference.name().as_string());
- reference.put(interpreter, rhs_result);
+ reference.put(interpreter, global_object, rhs_result);
if (interpreter.exception())
return {};
@@ -1122,7 +1122,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);
+ auto old_value = reference.get(interpreter, global_object);
if (interpreter.exception())
return {};
old_value = old_value.to_numeric(interpreter);
@@ -1147,7 +1147,7 @@ Value UpdateExpression::execute(Interpreter& interpreter, GlobalObject& global_o
ASSERT_NOT_REACHED();
}
- reference.put(interpreter, new_value);
+ reference.put(interpreter, global_object, new_value);
if (interpreter.exception())
return {};
return m_prefixed ? new_value : old_value;