mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 947661 - Fix offset test used to find the block chain for a pc.
This commit is contained in:
parent
d64b1c97c0
commit
d9c1235f0a
@ -1464,7 +1464,7 @@ js::GetBlockChainAtPC(JSScript *script, jsbytecode *pc)
|
||||
while (check >= bottom) {
|
||||
const BlockScopeNote *checkNote = &blockScopes->vector[check];
|
||||
JS_ASSERT(checkNote->start <= offset);
|
||||
if (offset <= checkNote->start + checkNote->length) {
|
||||
if (offset < checkNote->start + checkNote->length) {
|
||||
// We found a matching block chain but there may be inner ones
|
||||
// at a higher block chain index than mid. Continue the binary search.
|
||||
blockChain = &script->getObject(checkNote->index)->as<StaticBlockObject>();
|
||||
|
Loading…
Reference in New Issue
Block a user