Update meriyah to v6 (#16667)
This commit is contained in:
1 parent
e0117a165b
commit
d2c415deae
81 files changed
+449
-518
No files matched your search
@@ -37,7 +37,7 @@ exports[`invalid-destructuring-arr.js [meriyah] format 1`] = `
|
||||
> 1 | [a?.b] = [];
|
||||
| ^
|
||||
2 |
|
||||
Cause: [1:10]: Invalid left-hand side in assignment"
|
||||
Cause: [1:9-1:10]: Invalid left-hand side in assignment"
|
||||
`;
|
||||
|
||||
exports[`invalid-destructuring-obj.js [__babel_estree] format 1`] = `
|
||||
@@ -77,7 +77,7 @@ exports[`invalid-destructuring-obj.js [meriyah] format 1`] = `
|
||||
> 1 | ({ prop: a?.b } = {});
|
||||
| ^
|
||||
2 |
|
||||
Cause: [1:19]: Invalid left-hand side in assignment"
|
||||
Cause: [1:18-1:19]: Invalid left-hand side in assignment"
|
||||
`;
|
||||
|
||||
exports[`invalid-fn-param.js [__babel_estree] format 1`] = `
|
||||
@@ -113,11 +113,11 @@ Cause: Unexpected token ?."
|
||||
`;
|
||||
|
||||
exports[`invalid-fn-param.js [meriyah] format 1`] = `
|
||||
"Expected ')' (1:14)
|
||||
"Expected ')' (1:13)
|
||||
> 1 | function f(a?.b) {}
|
||||
| ^
|
||||
| ^^
|
||||
2 |
|
||||
Cause: [1:14]: Expected ')'"
|
||||
Cause: [1:12-1:14]: Expected ')'"
|
||||
`;
|
||||
|
||||
exports[`invalid-fn-param-arrow.js [__babel_estree] format 1`] = `
|
||||
@@ -153,11 +153,11 @@ Cause: Optional chaining cannot appear in left-hand side"
|
||||
`;
|
||||
|
||||
exports[`invalid-fn-param-arrow.js [meriyah] format 1`] = `
|
||||
"The left-hand side of the arrow can only be destructed through assignment (1:9)
|
||||
"The left-hand side of the arrow can only be destructed through assignment (1:8)
|
||||
> 1 | (a?.b) => {}
|
||||
| ^
|
||||
| ^^
|
||||
2 |
|
||||
Cause: [1:9]: The left-hand side of the arrow can only be destructed through assignment"
|
||||
Cause: [1:7-1:9]: The left-hand side of the arrow can only be destructed through assignment"
|
||||
`;
|
||||
|
||||
exports[`invalid-fn-param-assign.js [__babel_estree] format 1`] = `
|
||||
@@ -193,11 +193,11 @@ Cause: Unexpected token ?."
|
||||
`;
|
||||
|
||||
exports[`invalid-fn-param-assign.js [meriyah] format 1`] = `
|
||||
"Expected ')' (1:14)
|
||||
"Expected ')' (1:13)
|
||||
> 1 | function f(a?.b = c) {}
|
||||
| ^
|
||||
| ^^
|
||||
2 |
|
||||
Cause: [1:14]: Expected ')'"
|
||||
Cause: [1:12-1:14]: Expected ')'"
|
||||
`;
|
||||
|
||||
exports[`invalid-for-await-of.js [__babel_estree] format 1`] = `
|
||||
@@ -233,11 +233,11 @@ Cause: Optional chaining cannot appear in left-hand side"
|
||||
`;
|
||||
|
||||
exports[`invalid-for-await-of.js [meriyah] format 1`] = `
|
||||
"Invalid left-hand side in for-of (1:12)
|
||||
"Invalid left-hand side in for-of (1:11)
|
||||
> 1 | for (a?.b of x);
|
||||
| ^
|
||||
| ^^
|
||||
2 |
|
||||
Cause: [1:12]: Invalid left-hand side in for-of"
|
||||
Cause: [1:10-1:12]: Invalid left-hand side in for-of"
|
||||
`;
|
||||
|
||||
exports[`invalid-for-in.js [__babel_estree] format 1`] = `
|
||||
@@ -273,11 +273,11 @@ Cause: Optional chaining cannot appear in left-hand side"
|
||||
`;
|
||||
|
||||
exports[`invalid-for-in.js [meriyah] format 1`] = `
|
||||
"Invalid left-hand side in for-in (1:12)
|
||||
"Invalid left-hand side in for-in (1:11)
|
||||
> 1 | for (a?.b in x);
|
||||
| ^
|
||||
| ^^
|
||||
2 |
|
||||
Cause: [1:12]: Invalid left-hand side in for-in"
|
||||
Cause: [1:10-1:12]: Invalid left-hand side in for-in"
|
||||
`;
|
||||
|
||||
exports[`invalid-for-of.js [__babel_estree] format 1`] = `
|
||||
@@ -313,11 +313,11 @@ Cause: Optional chaining cannot appear in left-hand side"
|
||||
`;
|
||||
|
||||
exports[`invalid-for-of.js [meriyah] format 1`] = `
|
||||
"Invalid left-hand side in for-of (1:12)
|
||||
"Invalid left-hand side in for-of (1:11)
|
||||
> 1 | for (a?.b of x);
|
||||
| ^
|
||||
| ^^
|
||||
2 |
|
||||
Cause: [1:12]: Invalid left-hand side in for-of"
|
||||
Cause: [1:10-1:12]: Invalid left-hand side in for-of"
|
||||
`;
|
||||
|
||||
exports[`invalid-inc-postfix.js [__babel_estree] format 1`] = `
|
||||
@@ -353,11 +353,11 @@ Cause: Optional chaining cannot appear in left-hand side"
|
||||
`;
|
||||
|
||||
exports[`invalid-inc-postfix.js [meriyah] format 1`] = `
|
||||
"Invalid increment/decrement operand (1:6)
|
||||
"Invalid increment/decrement operand (1:5)
|
||||
> 1 | a?.b++;
|
||||
| ^
|
||||
| ^^
|
||||
2 |
|
||||
Cause: [1:6]: Invalid increment/decrement operand"
|
||||
Cause: [1:4-1:6]: Invalid increment/decrement operand"
|
||||
`;
|
||||
|
||||
exports[`invalid-inc-prefix.js [__babel_estree] format 1`] = `
|
||||
@@ -397,7 +397,7 @@ exports[`invalid-inc-prefix.js [meriyah] format 1`] = `
|
||||
> 1 | ++a?.b;
|
||||
| ^
|
||||
2 |
|
||||
Cause: [1:7]: Invalid increment/decrement operand"
|
||||
Cause: [1:6-1:7]: Invalid increment/decrement operand"
|
||||
`;
|
||||
|
||||
exports[`valid-complex-case.js [acorn] format 1`] = `
|
||||
@@ -419,12 +419,12 @@ Cause: The keyword 'let' is reserved"
|
||||
`;
|
||||
|
||||
exports[`valid-complex-case.js [meriyah] format 1`] = `
|
||||
"\`let\` declaration not allowed here and \`let\` cannot be a regular var name in strict mode (1:5)
|
||||
"\`let\` declaration not allowed here and \`let\` cannot be a regular var name in strict mode (1:4)
|
||||
> 1 | let?.()[a] =1;
|
||||
| ^
|
||||
| ^^
|
||||
2 | let?.[a] = 1;
|
||||
3 |
|
||||
Cause: [1:5]: \`let\` declaration not allowed here and \`let\` cannot be a regular var name in strict mode"
|
||||
Cause: [1:3-1:5]: \`let\` declaration not allowed here and \`let\` cannot be a regular var name in strict mode"
|
||||
`;
|
||||
|
||||
exports[`valid-complex-case.js format 1`] = `
|
||||
@@ -524,7 +524,7 @@ exports[`valid-parenthesized.js [meriyah] format 1`] = `
|
||||
> 1 | (a?.b) = c;
|
||||
| ^
|
||||
2 |
|
||||
Cause: [1:8]: Invalid left-hand side in assignment"
|
||||
Cause: [1:7-1:8]: Invalid left-hand side in assignment"
|
||||
`;
|
||||
|
||||
exports[`valid-parenthesized.js format 1`] = `
|
||||
|
||||
Reference in new issue
Block a user