BytecodeIterator post-increment operator is wrong
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox72 | --- | fixed |
People
(Reporter: mgaudet, Assigned: asorholm)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Looking at the implementation of pre- and post-increment in BytecodeIterator
, they have the same implementation... which means one of them is wrong.
I am pretty sure it's the post-increment.
To finish this bug we'll need to
- Fix the implementation
- Normally we'd have to audit the uses, but I don't see any currently.
I am going to set this as blocking Bug 1572504, because we'll need to make sure it doesn't use post increment unless we have fixed it.
Post-increment overload operator for BytecodeIterator class matches the
operator for pre-increment in BytecodeIterator, meaning the implementation of
post-increment is incorrect.
(In reply to Matthew Gaudet (he/him) [:mgaudet] from comment #0)
Any suggestions on methods for testing the change? I guess I could use the increment operators in bug 1572504, but I would worry it would be difficult to untangle problems with the post-increment fix from problems with the patch for bug 1572504.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 5•5 years ago
|
||
bugherder |
Description
•