LibJS: Fix ObjectExpression::execute()

Change from code review changed key() and value() getters - forgot to
update this...
This commit is contained in:
Linus Groh 2020-04-23 23:00:58 +01:00 committed by Andreas Kling
parent 746dd5b190
commit 57caca3171
Notes: sideshowbarker 2024-07-19 07:20:54 +09:00

View file

@ -967,11 +967,11 @@ Value ObjectExpression::execute(Interpreter& interpreter) const
{
auto* object = Object::create_empty(interpreter, interpreter.global_object());
for (auto& property : m_properties) {
auto key_result = property.key()->execute(interpreter);
auto key_result = property.key().execute(interpreter);
if (interpreter.exception())
return {};
auto key = key_result.to_string();
auto value = property.value()->execute(interpreter);
auto value = property.value().execute(interpreter);
if (interpreter.exception())
return {};
object->put(key, value);