Add array destruct w/o [rest[0]] on RHS fixture.
(Failing.)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user