LibJS: Some Bytecode.def fixes

- Add missing @nothrow to a bunch of instructions.
- Rename fields that were colliding between base and derived class.
This commit is contained in:
Andreas Kling 2025-11-22 11:55:49 +01:00 committed by Andreas Kling
parent 2d76e21cfd
commit 702977373c
Notes: github-actions[bot] 2025-11-30 10:55:01 +00:00
2 changed files with 23 additions and 4 deletions

View file

@ -3284,13 +3284,13 @@ void SetCompletionType::execute_impl(Bytecode::Interpreter& interpreter) const
{
auto& completion_cell = static_cast<CompletionCell&>(interpreter.get(m_completion).as_cell());
auto completion = completion_cell.completion();
completion_cell.set_completion(Completion { m_type, completion.value() });
completion_cell.set_completion(Completion { m_completion_type, completion.value() });
}
ThrowCompletionOr<void> CreateImmutableBinding::execute_impl(Bytecode::Interpreter& interpreter) const
{
auto& environment = as<Environment>(interpreter.get(m_environment).as_cell());
return environment.create_immutable_binding(interpreter.vm(), interpreter.get_identifier(m_identifier), m_strict);
return environment.create_immutable_binding(interpreter.vm(), interpreter.get_identifier(m_identifier), m_strict_binding);
}
ThrowCompletionOr<void> CreateMutableBinding::execute_impl(Bytecode::Interpreter& interpreter) const