mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
LibJS/Bytecode: Fix bad serialization of Postfix{Increment,Decrement}
We were serializing the dst operand twice in both instructions.
This commit is contained in:
parent
4bce61e508
commit
0c18450c4f
1 changed files with 2 additions and 2 deletions
|
@ -2000,7 +2000,7 @@ ByteString PostfixIncrement::to_byte_string_impl(Bytecode::Executable const& exe
|
|||
{
|
||||
return ByteString::formatted("PostfixIncrement {}, {}",
|
||||
format_operand("dst"sv, m_dst, executable),
|
||||
format_operand("src"sv, m_dst, executable));
|
||||
format_operand("src"sv, m_src, executable));
|
||||
}
|
||||
|
||||
ByteString Decrement::to_byte_string_impl(Bytecode::Executable const& executable) const
|
||||
|
@ -2012,7 +2012,7 @@ ByteString PostfixDecrement::to_byte_string_impl(Bytecode::Executable const& exe
|
|||
{
|
||||
return ByteString::formatted("PostfixDecrement {}, {}",
|
||||
format_operand("dst"sv, m_dst, executable),
|
||||
format_operand("src"sv, m_dst, executable));
|
||||
format_operand("src"sv, m_src, executable));
|
||||
}
|
||||
|
||||
ByteString Throw::to_byte_string_impl(Bytecode::Executable const& executable) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue