mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-12 17:30:38 +00:00
LibJS: Fix ObjectExpression::execute()
Change from code review changed key() and value() getters - forgot to update this...
This commit is contained in:
parent
746dd5b190
commit
57caca3171
Notes:
sideshowbarker
2024-07-19 07:20:54 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/57caca31713 Pull-request: https://github.com/SerenityOS/serenity/pull/1934
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue