mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 14:28:49 +00:00
LibJS: Make SetCompletionType bytecode instruction actually set type
This recovers 38 tests in test262 that regressed in a0bb31f7a0
.
This commit is contained in:
parent
026bc91d6c
commit
fe1962d7fa
Notes:
github-actions[bot]
2025-04-05 13:01:03 +00:00
Author: https://github.com/awesomekling
Commit: fe1962d7fa
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4236
Reviewed-by: https://github.com/gmta ✅
2 changed files with 44 additions and 1 deletions
|
@ -3847,7 +3847,7 @@ 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 { completion.type(), completion.value() });
|
||||
completion_cell.set_completion(Completion { m_type, completion.value() });
|
||||
}
|
||||
|
||||
ByteString SetCompletionType::to_byte_string_impl(Bytecode::Executable const& executable) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue