Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix destructuring assignments being transpiled for edge 15 #9902

Merged
merged 2 commits into from May 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/babel-preset-env/data/plugin-features.js
Expand Up @@ -68,7 +68,6 @@ const es = {
features: [
"destructuring, assignment",
"destructuring, declarations",
"destructuring, parameters",
],
},
"transform-block-scoping": {
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-preset-env/data/plugins.json
Expand Up @@ -173,7 +173,7 @@
},
"transform-destructuring": {
"chrome": "51",
"edge": "18",
"edge": "15",
"firefox": "53",
"safari": "10",
"node": "6.5",
Expand Down
@@ -0,0 +1,3 @@
((a, { b = 0, c = 3 }) => {
return a === 1 && b === 2 && c === 3;
})(1, { b: 2 });
@@ -0,0 +1,13 @@
{
"presets": [
[
"../../../../lib",
{
"targets": {
"browsers": ["edge >= 15"]
},
"modules": false
}
]
]
}
@@ -0,0 +1,9 @@
((a, _ref) => {
let {
b = 0,
c = 3
} = _ref;
return a === 1 && b === 2 && c === 3;
})(1, {
b: 2
});