forked from babel/babel
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for babel#15154 and babel#15168
- Loading branch information
1 parent
6f41ba0
commit 6820861
Showing
9 changed files
with
31 additions
and
7 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
3 changes: 3 additions & 0 deletions
3
packages/babel-plugin-transform-destructuring/test/fixtures/regression/15154/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,3 @@ | ||
expect(() => { | ||
var [] = { [Symbol.iterator]: () => [] }; | ||
}).not.toThrow(); |
1 change: 1 addition & 0 deletions
1
packages/babel-plugin-transform-destructuring/test/fixtures/regression/15154/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 @@ | ||
var [] = { [Symbol.iterator]: () => [] }; |
3 changes: 3 additions & 0 deletions
3
packages/babel-plugin-transform-destructuring/test/fixtures/regression/15154/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 @@ | ||
{ | ||
"plugins": ["transform-destructuring"] | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/babel-plugin-transform-destructuring/test/fixtures/regression/15154/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,4 @@ | ||
var _Symbol$iterator = { | ||
[Symbol.iterator]: () => [] | ||
}, | ||
_Symbol$iterator2 = babelHelpers.slicedToArray(_Symbol$iterator, 0); |
3 changes: 3 additions & 0 deletions
3
packages/babel-plugin-transform-destructuring/test/fixtures/regression/15168/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,3 @@ | ||
expect(() => { | ||
var [] = { [Symbol.iterator]: () => async function* () {} }; | ||
}).not.toThrow(); |
1 change: 1 addition & 0 deletions
1
packages/babel-plugin-transform-destructuring/test/fixtures/regression/15168/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 @@ | ||
var [] = { [Symbol.iterator]: () => async function* () {} }; |
3 changes: 3 additions & 0 deletions
3
packages/babel-plugin-transform-destructuring/test/fixtures/regression/15168/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 @@ | ||
{ | ||
"plugins": ["transform-destructuring"] | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/babel-plugin-transform-destructuring/test/fixtures/regression/15168/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,4 @@ | ||
var _Symbol$iterator = { | ||
[Symbol.iterator]: () => async function* () {} | ||
}, | ||
_Symbol$iterator2 = babelHelpers.slicedToArray(_Symbol$iterator, 0); |