mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:47:35 +00:00
LibJS: Convert to_numeric() to ThrowCompletionOr
This commit is contained in:
parent
e35222a76e
commit
b8f101888b
5 changed files with 44 additions and 98 deletions
|
@ -2055,9 +2055,7 @@ Value UpdateExpression::execute(Interpreter& interpreter, GlobalObject& global_o
|
|||
auto old_value = reference.get_value(global_object);
|
||||
if (interpreter.exception())
|
||||
return {};
|
||||
old_value = old_value.to_numeric(global_object);
|
||||
if (interpreter.exception())
|
||||
return {};
|
||||
old_value = TRY_OR_DISCARD(old_value.to_numeric(global_object));
|
||||
|
||||
Value new_value;
|
||||
switch (m_op) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue