Build(deps): Bump @babel/parser from 7.13.11 to 7.13.13 (#10622)

This commit is contained in:
dependabot[bot] authored and GitHub committed 2021-03-29 12:37:10 +00:00
1 parent a6a05fa7fd
commit 0ecf5171fe
6 files changed
+133 -7

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@
"dependencies": {
"@angular/compiler": "11.2.7",
"@babel/code-frame": "7.12.13",
"@babel/parser": "7.13.11",
"@babel/parser": "7.13.13",
"@glimmer/syntax": "0.77.6",
"@iarna/toml": "2.2.5",
"@typescript-eslint/typescript-estree": "4.19.0",
@@ -133,6 +133,20 @@ async function f2() {
================================================================================
`;
exports[`exponentiation.js format 1`] = `
====================================options=====================================
parsers: ["babel", "flow", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
async () => (await 5) ** 6;
=====================================output=====================================
async () => (await 5) ** 6;
================================================================================
`;
exports[`inline-await.js format 1`] = `
====================================options=====================================
parsers: ["babel", "flow", "typescript"]
+1
View File
@@ -0,0 +1 @@
async () => (await 5) ** 6;
@@ -258,6 +258,12 @@ exports[`snippet: #6 [babel] format 1`] = `
| ^"
`;
exports[`snippet: #6 [babel] format 2`] = `
"Illegal expression. Wrap left hand side or entire exponentiation in parentheses. (1:23)
> 1 | f = async () => await 5 ** 6;
| ^"
`;
exports[`snippet: #6 [espree] format 1`] = `
"Unexpected token { (1:20)
> 1 | C = class { static { function f(await) {} } };
@@ -282,6 +288,12 @@ exports[`snippet: #7 [babel] format 1`] = `
| ^"
`;
exports[`snippet: #7 [babel] format 2`] = `
"Illegal expression. Wrap left hand side or entire exponentiation in parentheses. (1:23)
> 1 | f = async () => await -5 ** 6;
| ^"
`;
exports[`snippet: #7 [espree] format 1`] = `
"Unexpected token { (1:20)
> 1 | C = class { static { function f(x = await) {} } };
@@ -323,3 +335,99 @@ exports[`snippet: #8 [meriyah] format 1`] = `
> 1 | C = class { static { function f({ [await]: x }) {} } };
| ^"
`;
exports[`snippet: #9 [babel] format 1`] = `
"Unexpected token (1:27)
> 1 | f = async (a) => await a! ** 6;
| ^"
`;
exports[`snippet: #9 [espree] format 1`] = `
"Unexpected token ! (1:25)
> 1 | f = async (a) => await a! ** 6;
| ^"
`;
exports[`snippet: #9 [flow] format 1`] = `
"Unexpected token \`!\`, expected the end of an expression statement (\`;\`) (1:25)
> 1 | f = async (a) => await a! ** 6;
| ^"
`;
exports[`snippet: #9 [meriyah] format 1`] = `
"[1:25]: Unexpected token: '!' (1:25)
> 1 | f = async (a) => await a! ** 6;
| ^"
`;
exports[`snippet: #10 [babel] format 1`] = `
"Unexpected token (1:16)
> 1 | f = (a) => +a! ** 6;
| ^"
`;
exports[`snippet: #10 [espree] format 1`] = `
"Unexpected token ! (1:14)
> 1 | f = (a) => +a! ** 6;
| ^"
`;
exports[`snippet: #10 [flow] format 1`] = `
"Unexpected token \`!\`, expected the end of an expression statement (\`;\`) (1:14)
> 1 | f = (a) => +a! ** 6;
| ^"
`;
exports[`snippet: #10 [meriyah] format 1`] = `
"[1:14]: Unexpected token: '!' (1:14)
> 1 | f = (a) => +a! ** 6;
| ^"
`;
exports[`snippet: #11 [babel] format 1`] = `
"Unexpected token, expected \\",\\" (1:22)
> 1 | async (a) => (await a!) ** 6;
| ^"
`;
exports[`snippet: #11 [espree] format 1`] = `
"Unexpected token ! (1:22)
> 1 | async (a) => (await a!) ** 6;
| ^"
`;
exports[`snippet: #11 [flow] format 1`] = `
"Unexpected token \`!\`, expected the token \`)\` (1:22)
> 1 | async (a) => (await a!) ** 6;
| ^"
`;
exports[`snippet: #11 [meriyah] format 1`] = `
"[1:22]: Expected ')' (1:22)
> 1 | async (a) => (await a!) ** 6;
| ^"
`;
exports[`snippet: #12 [babel] format 1`] = `
"Illegal expression. Wrap left hand side or entire exponentiation in parentheses. (1:3)
> 1 | (-+5 ** 6);
| ^"
`;
exports[`snippet: #12 [espree] format 1`] = `
"Unexpected token ** (1:6)
> 1 | (-+5 ** 6);
| ^"
`;
exports[`snippet: #12 [flow] format 1`] = `
"Invalid left-hand side in exponentiation expression (1:2)
> 1 | (-+5 ** 6);
| ^^^"
`;
exports[`snippet: #12 [meriyah] format 1`] = `
"[1:7]: Unary expressions as the left operand of an exponentiation expression must be disambiguated with parentheses (1:7)
> 1 | (-+5 ** 6);
| ^"
`;
@@ -21,6 +21,10 @@ run_spec(
"C = class { static { function f(await) {} } };",
"C = class { static { function f(x = await) {} } };",
"C = class { static { function f({ [await]: x }) {} } };",
"f = async (a) => await a! ** 6;",
"f = (a) => +a! ** 6;",
"async (a) => (await a!) ** 6;",
"(-+5 ** 6);",
// TODO: Test these two edge case
// outdent`
// export class C {
@@ -61,6 +65,10 @@ run_spec(
(foo);
}
`,
// `espree` and `meriyah` didn't throw
"f = async () => await 5 ** 6;",
// `espree` didn't throw
"f = async () => await -5 ** 6;",
],
},
["babel"]
+1 -6
View File
@@ -313,12 +313,7 @@
chalk "^2.0.0"
js-tokens "^4.0.0"
"@babel/parser@7.13.11":
version "7.13.11"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.11.tgz#f93ebfc99d21c1772afbbaa153f47e7ce2f50b88"
integrity sha512-PhuoqeHoO9fc4ffMEVk4qb/w/s2iOSWohvbHxLtxui0eBg3Lg5gN1U8wp1V1u61hOWkPQJJyJzGH6Y+grwkq8Q==
"@babel/parser@^7.1.0", "@babel/parser@^7.12.13", "@babel/parser@^7.13.13":
"@babel/parser@7.13.13", "@babel/parser@^7.1.0", "@babel/parser@^7.12.13", "@babel/parser@^7.13.13":
version "7.13.13"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.13.tgz#42f03862f4aed50461e543270916b47dd501f0df"
integrity sha512-OhsyMrqygfk5v8HmWwOzlYjJrtLaFhF34MrfG/Z73DgYCI6ojNUTUp2TYbtnjo8PegeJp12eamsNettCQjKjVw==