diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-01-11 13:44:16 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-01-11 13:44:16 -0300 |
commit | e288c5a91883793d14ed9e9d93464f6ee0b08915 (patch) | |
tree | f563f9b4d218c9e35ff3e56eda068cfddb039651 /manual | |
parent | 5853c37a83ec66ccb45094f9aeac23dfdbcde671 (diff) | |
download | lua-e288c5a91883793d14ed9e9d93464f6ee0b08915.tar.gz lua-e288c5a91883793d14ed9e9d93464f6ee0b08915.tar.bz2 lua-e288c5a91883793d14ed9e9d93464f6ee0b08915.zip |
Bug: Yielding in a hook stops in the wrong instruction
Yielding in a hook must decrease the program counter, because it already
counted an instruction that, in the end, was not executed. However,
that decrement should be done only when about to restart the thread.
Otherwise, inspecting the thread with the debug library shows it one
instruction behind of where it really is.
Diffstat (limited to 'manual')
0 files changed, 0 insertions, 0 deletions