mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
LibJS: Convert reference deletion to ThrowCompletionOr
This commit is contained in:
parent
330ac1e5ad
commit
d73b258874
4 changed files with 10 additions and 14 deletions
|
@ -1120,7 +1120,7 @@ Value UnaryExpression::execute(Interpreter& interpreter, GlobalObject& global_ob
|
|||
auto reference = m_lhs->to_reference(interpreter, global_object);
|
||||
if (interpreter.exception())
|
||||
return {};
|
||||
return Value(reference.delete_(global_object));
|
||||
return Value(TRY_OR_DISCARD(reference.delete_(global_object)));
|
||||
}
|
||||
|
||||
Value lhs_result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue