Add array destruct w/o [rest[0]] on RHS fixture.

(Failing.)
This commit is contained in:
Jesse McCarthy
2016-02-19 09:18:40 -05:00
parent 0be3a58dd2
commit 6ca07974c9
2 changed files with 18 additions and 0 deletions

View File

@@ -74,3 +74,9 @@ function method (...rest) {
function newExp (...rest) {
new rest[0]();
}
// In addition to swap() above because at some point someone tried checking
// grandparent path for isArrayExpression() to deopt.
function arrayDestructure (...rest) {
[rest[0]] = x;
}

View File

@@ -135,3 +135,15 @@ function newExp() {
new rest[0]();
}
// In addition to swap() above because at some point someone tried checking
// grandparent path for isArrayExpression() to deopt.
function arrayDestructure() {
for (var _len16 = arguments.length, rest = Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {
rest[_key16] = arguments[_key16];
}
var _x = babelHelpers.slicedToArray(x, 1);
rest[0] = _x[0];
}