Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
babel-plugin-transform-spread add missing argument in build calls (#1…
…3459) * babel-plugin-transform-spread add missing argument in build calls * update tests for babel 8 test
- Loading branch information
Showing
13 changed files
with
28 additions
and
2 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
...l-plugin-transform-spread/test/fixtures/spread/method-call-array-literal-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 @@ | ||
f(...[1, 2, 3]); | ||
f(...[1, , 3]); |
3 changes: 3 additions & 0 deletions
3
...ugin-transform-spread/test/fixtures/spread/method-call-array-literal-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
...-plugin-transform-spread/test/fixtures/spread/method-call-array-literal-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 @@ | ||
f.apply(void 0, [1, 2, 3]); | ||
f.apply(void 0, babelHelpers.arrayWithoutHoles([1,, 3])); |
1 change: 1 addition & 0 deletions
1
...ges/babel-plugin-transform-spread/test/fixtures/spread/method-call-array-literal/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 |
---|---|---|
@@ -1 +1,2 @@ | ||
f(...[1, 2, 3]); | ||
f(...[1, , 3]); |
3 changes: 3 additions & 0 deletions
3
...babel-plugin-transform-spread/test/fixtures/spread/method-call-array-literal/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 | ||
} |
1 change: 1 addition & 0 deletions
1
...es/babel-plugin-transform-spread/test/fixtures/spread/method-call-array-literal/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 +1,2 @@ | ||
f.apply(void 0, [1, 2, 3]); | ||
f.apply(void 0, babelHelpers.arrayLikeToArray([1,, 3])); |
3 changes: 3 additions & 0 deletions
3
packages/babel-plugin-transform-spread/test/fixtures/spread/new-expression-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,3 @@ | ||
new Numbers(...nums); | ||
new Numbers(1, ...nums); | ||
new Numbers(...[1, , 3]); |
3 changes: 3 additions & 0 deletions
3
...es/babel-plugin-transform-spread/test/fixtures/spread/new-expression-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 | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/babel-plugin-transform-spread/test/fixtures/spread/new-expression-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,3 @@ | ||
babelHelpers.construct(Numbers, babelHelpers.toConsumableArray(nums)); | ||
babelHelpers.construct(Numbers, [1].concat(babelHelpers.toConsumableArray(nums))); | ||
babelHelpers.construct(Numbers, babelHelpers.arrayWithoutHoles([1,, 3])); |
1 change: 1 addition & 0 deletions
1
packages/babel-plugin-transform-spread/test/fixtures/spread/new-expression/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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
new Numbers(...nums); | ||
new Numbers(1, ...nums); | ||
new Numbers(...[1, , 3]); |
3 changes: 3 additions & 0 deletions
3
packages/babel-plugin-transform-spread/test/fixtures/spread/new-expression/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 | ||
} |
1 change: 1 addition & 0 deletions
1
packages/babel-plugin-transform-spread/test/fixtures/spread/new-expression/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,3 @@ | ||
babelHelpers.construct(Numbers, babelHelpers.toConsumableArray(nums)); | ||
babelHelpers.construct(Numbers, [1].concat(babelHelpers.toConsumableArray(nums))); | ||
babelHelpers.construct(Numbers, babelHelpers.arrayLikeToArray([1,, 3])); |