1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:07:35 +00:00

LibJS: Convert make_super_property_reference to ThrowCompletionOr

This commit is contained in:
Idan Horowitz 2021-09-21 21:52:09 +03:00
parent 9d7fe39640
commit 02a88c5063
3 changed files with 4 additions and 4 deletions

View file

@ -776,7 +776,7 @@ Reference MemberExpression::to_reference(Interpreter& interpreter, GlobalObject&
bool strict = interpreter.vm().in_strict_mode();
// 7. Return ? MakeSuperPropertyReference(actualThis, propertyKey, strict).
return make_super_property_reference(global_object, actual_this, property_key, strict);
return TRY_OR_DISCARD(make_super_property_reference(global_object, actual_this, property_key, strict));
}
auto object_value = m_object->execute(interpreter, global_object);