LibJS: Convert the PutValue AO to ThrowCompletionOr

This commit is contained in:
Idan Horowitz 2021-11-02 19:20:21 +02:00 committed by Linus Groh
commit 1aaaf521b8
Notes: sideshowbarker 2024-07-18 01:33:37 +09:00
6 changed files with 58 additions and 101 deletions

View file

@ -274,7 +274,8 @@ void SetVariable::execute_impl(Bytecode::Interpreter& interpreter) const
if (vm.exception())
return;
reference.put_value(interpreter.global_object(), interpreter.accumulator());
// TODO: ThrowCompletionOr<void> return
(void)reference.put_value(interpreter.global_object(), interpreter.accumulator());
}
void GetById::execute_impl(Bytecode::Interpreter& interpreter) const