Closed Bug 782363 Opened 13 years ago Closed 10 years ago

Increment/Decrement alters const variables

Categories

(Rhino Graveyard :: Core, defect)

head
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: anba, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1 Build ID: 20120713134347 Steps to reproduce: Inc/Dec shouldn't have any effects on const variables, but they currently do. Simple test case with broken behaviour: js> function f(){const a=0; a++; return a} js> f() 1 js> function f(){const a=1; a--; return a} js> f() 0
PR was merged
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.