mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
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:
parent
2d76e21cfd
commit
702977373c
Notes:
github-actions[bot]
2025-11-30 10:55:01 +00:00
Author: https://github.com/awesomekling
Commit: 702977373c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6977
2 changed files with 23 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue