Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f604e84
commit 443bc8d
Showing
7 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...babel-plugin-transform-spread/test/fixtures/spread/nested-array-with-hole-babel-7/exec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
let arr = ['a', ...['b',,'c']]; | ||
expect(2 in arr).toBe(true); |
2 changes: 2 additions & 0 deletions
2
...abel-plugin-transform-spread/test/fixtures/spread/nested-array-with-hole-babel-7/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
var a = [...['a',, 'b']]; | ||
var b = ['a', ...['b',, 'c']]; |
3 changes: 3 additions & 0 deletions
3
...-plugin-transform-spread/test/fixtures/spread/nested-array-with-hole-babel-7/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"BABEL_8_BREAKING": false | ||
} |
2 changes: 2 additions & 0 deletions
2
...bel-plugin-transform-spread/test/fixtures/spread/nested-array-with-hole-babel-7/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
var a = babelHelpers.arrayWithoutHoles(['a',, 'b']); | ||
var b = ['a'].concat(babelHelpers.arrayWithoutHoles(['b',, 'c'])); |
3 changes: 3 additions & 0 deletions
3
...es/babel-plugin-transform-spread/test/fixtures/spread/nested-array-with-hole/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"BABEL_8_BREAKING": true | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/babel-plugin-transform-spread/test/fixtures/spread/nested-array-with-hole/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
var a = babelHelpers.arrayWithoutHoles(['a',, 'b']); | ||
var b = ['a'].concat(babelHelpers.arrayWithoutHoles(['b',, 'c'])); | ||
var a = babelHelpers.arrayLikeToArray(['a',, 'b']); | ||
var b = ['a'].concat(babelHelpers.arrayLikeToArray(['b',, 'c'])); |