Add postfix update expression fixtures.

(Failing.)
This commit is contained in:
Jesse McCarthy
2016-02-23 08:55:59 -05:00
parent 5f98d22b6d
commit 8419be1afc
2 changed files with 24 additions and 0 deletions

View File

@@ -84,3 +84,11 @@ function arrayDestructure (...rest) {
function forOf (...rest) {
for (rest[0] of this);
}
function postfixIncrement (...rest) {
rest[0]++;
}
function postfixDecrement (...rest) {
rest[0]--;
}

View File

@@ -178,3 +178,19 @@ function forOf() {
}
}
}
function postfixIncrement() {
for (var _len18 = arguments.length, rest = Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {
rest[_key18] = arguments[_key18];
}
rest[0]++;
}
function postfixDecrement() {
for (var _len19 = arguments.length, rest = Array(_len19), _key19 = 0; _key19 < _len19; _key19++) {
rest[_key19] = arguments[_key19];
}
rest[0]--;
}