Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hotfix] Use same targets for fields as for private methods (#11633)
- Loading branch information
1 parent
05804b1
commit 32bd530
Showing
5 changed files
with
23 additions
and
1 deletion.
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
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-preset-env/test/fixtures/shipped-proposals/node-12/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 @@ | ||
class A { | ||
x; | ||
} |
8 changes: 8 additions & 0 deletions
8
packages/babel-preset-env/test/fixtures/shipped-proposals/node-12/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,8 @@ | ||
{ | ||
"presets": [ | ||
["env", { | ||
"targets": { "node": 12 }, | ||
"shippedProposals": true | ||
}] | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
packages/babel-preset-env/test/fixtures/shipped-proposals/node-12/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,8 @@ | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
|
||
class A { | ||
constructor() { | ||
_defineProperty(this, "x", void 0); | ||
} | ||
|
||
} |