Browse source

Changelog

Query
From:
To:
Branch:
Path:
Message:
BugID:
User: +
Format:
: 3 checkins (+474/-186) by Per Hedbor <ph@opera.com> Lines added/removed recently

Thursday 04 December 2014

2014-12-04 20:27:13 (6 years ago) by Per Hedbor <ph@opera.com>

Fixed an issue with the removal of +=

When you did things like a[i++] += 10; the code was (more or less)
converted to a[i++] = [typeof(a[])](a[i++]+10); which was not what
you really wanted.

Solved by adding a new opcode that is used for the specific case where
the LHS in the assignment has side effects.

Also, in this somewhat uncommon case automap is now no longer
supported.

Note that things like a[i++] = a[i]+b[i] is not using this new opcode,
only += and friends use it.

[permalink]

Bugs? Suggestions?