You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When boa is printing a compiled CodeBlock, the locations printed correspond to the location of the wrong instruction (they are the following instruction, not the current instruction)
Acked-by: Taylor Sutton <[email protected]>
This Pull Request fixes/closes#1998
The call to retrieve operands modifies pc, setting it to the index of
the *next* instruction. So, we save its initial value and use that
for printing.
Describe the bug
When
boa
is printing a compiledCodeBlock
, the locations printed correspond to the location of the wrong instruction (they are the following instruction, not the current instruction)To Reproduce
Then run
cargo run -- -t bug.js
:Expected behavior
In this output, you can see a few weird things:
JumpIfFalse
has operand 19, but the instruction listed at location 19 is another Jump.Build environment (please complete the following information):
main
as of writing)The text was updated successfully, but these errors were encountered: