Skip to content

Commit

Permalink
Update test refs
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Apr 1, 2021
1 parent b372b38 commit e468546
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions ecmascript/transforms/compat/tests/es2015_destructuring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1525,10 +1525,7 @@ test!(
const [ a = 1 ] = b
",
"
var _b = b,
_b2 = _slicedToArray(_b, 1),
_b2$ = _b2[0],
a = _b2$ === void 0 ? 1 : _b2$;
const tmp = b[0], a = tmp === void 0 ? 1 : tmp;
"
);

Expand All @@ -1540,12 +1537,7 @@ test!(
[ a = 1 ] = b
",
"
var _b = b;
var _b2 = _slicedToArray(_b, 1);
var _b2$ = _b2[0];
a = _b2$ === void 0 ? 1 : _b2$;
_b;
var ref, ref1;
ref = b, ref1 = ref[0], a = ref1 === void 0 ? 1 : ref1, ref;
"
);

0 comments on commit e468546

Please sign in to comment.