Enable logical assignment by default in @babel/parser (#11860) (#11869)

This commit is contained in:
Vahagn Aharonian
2020-07-22 21:14:37 +04:00
committed by Huáng Jùnliàng
parent 0e985fb287
commit b651a6f6ab
19 changed files with 15 additions and 44 deletions

View File

@@ -804,10 +804,10 @@ describe("api", function () {
options,
function (err) {
expect(err.message).toMatch(
"Support for the experimental syntax 'logicalAssignment' isn't currently enabled (1:3):",
"Support for the experimental syntax 'doExpressions' isn't currently enabled (1:2):",
);
expect(err.message).toMatch(
"Add @babel/plugin-proposal-logical-assignment-operators (https://git.io/vAlRe) to the " +
"Add @babel/plugin-proposal-do-expressions (https://git.io/vb4S3) to the " +
"'plugins' section of your Babel config to enable transformation.",
);
done();