Skip to content

Commit

Permalink
chore: update es6 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Jan 2, 2024
1 parent af5858e commit 8f9f2fa
Show file tree
Hide file tree
Showing 20 changed files with 518 additions and 948 deletions.
1,030 changes: 486 additions & 544 deletions tests/fixtures/ecma-version/6/classes/class-one-method-super.result.js

Large diffs are not rendered by default.

@@ -1,6 +1,6 @@
export default {
index: 5,
lineNumber: 1,
column: 6,
message: "for-of loop variable declaration may not have an initializer"
};
"index": 5,
"lineNumber": 1,
"column": 6,
"message": "for-of loop variable declaration may not have an initializer"
};
@@ -1,7 +1,5 @@
export default {
"type": "Program",
"start": 0,
"end": 26,
"loc": {
"start": {
"line": 1,
Expand All @@ -19,8 +17,6 @@ export default {
"body": [
{
"type": "ExportDefaultDeclaration",
"start": 0,
"end": 26,
"loc": {
"start": {
"line": 1,
Expand All @@ -37,8 +33,6 @@ export default {
],
"declaration": {
"type": "ClassExpression",
"start": 16,
"end": 24,
"loc": {
"start": {
"line": 1,
Expand All @@ -57,8 +51,6 @@ export default {
"superClass": null,
"body": {
"type": "ClassBody",
"start": 22,
"end": 24,
"loc": {
"start": {
"line": 1,
Expand All @@ -83,8 +75,6 @@ export default {
{
"type": "Keyword",
"value": "export",
"start": 0,
"end": 6,
"loc": {
"start": {
"line": 1,
Expand All @@ -103,8 +93,6 @@ export default {
{
"type": "Keyword",
"value": "default",
"start": 7,
"end": 14,
"loc": {
"start": {
"line": 1,
Expand All @@ -123,8 +111,6 @@ export default {
{
"type": "Punctuator",
"value": "(",
"start": 15,
"end": 16,
"loc": {
"start": {
"line": 1,
Expand All @@ -143,8 +129,6 @@ export default {
{
"type": "Keyword",
"value": "class",
"start": 16,
"end": 21,
"loc": {
"start": {
"line": 1,
Expand All @@ -163,8 +147,6 @@ export default {
{
"type": "Punctuator",
"value": "{",
"start": 22,
"end": 23,
"loc": {
"start": {
"line": 1,
Expand All @@ -183,8 +165,6 @@ export default {
{
"type": "Punctuator",
"value": "}",
"start": 23,
"end": 24,
"loc": {
"start": {
"line": 1,
Expand All @@ -203,8 +183,6 @@ export default {
{
"type": "Punctuator",
"value": ")",
"start": 24,
"end": 25,
"loc": {
"start": {
"line": 1,
Expand All @@ -223,8 +201,6 @@ export default {
{
"type": "Punctuator",
"value": ";",
"start": 25,
"end": 26,
"loc": {
"start": {
"line": 1,
Expand All @@ -241,4 +217,4 @@ export default {
]
}
]
};
};
@@ -1,7 +1,5 @@
export default {
"type": "Program",
"start": 0,
"end": 30,
"loc": {
"start": {
"line": 1,
Expand All @@ -19,8 +17,6 @@ export default {
"body": [
{
"type": "ExportDefaultDeclaration",
"start": 0,
"end": 30,
"loc": {
"start": {
"line": 1,
Expand All @@ -37,8 +33,6 @@ export default {
],
"declaration": {
"type": "FunctionExpression",
"start": 16,
"end": 28,
"loc": {
"start": {
"line": 1,
Expand All @@ -54,13 +48,11 @@ export default {
28
],
"id": null,
"generator": false,
"expression": false,
"generator": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 26,
"end": 28,
"loc": {
"start": {
"line": 1,
Expand All @@ -85,8 +77,6 @@ export default {
{
"type": "Keyword",
"value": "export",
"start": 0,
"end": 6,
"loc": {
"start": {
"line": 1,
Expand All @@ -105,8 +95,6 @@ export default {
{
"type": "Keyword",
"value": "default",
"start": 7,
"end": 14,
"loc": {
"start": {
"line": 1,
Expand All @@ -125,8 +113,6 @@ export default {
{
"type": "Punctuator",
"value": "(",
"start": 15,
"end": 16,
"loc": {
"start": {
"line": 1,
Expand All @@ -145,8 +131,6 @@ export default {
{
"type": "Keyword",
"value": "function",
"start": 16,
"end": 24,
"loc": {
"start": {
"line": 1,
Expand All @@ -165,8 +149,6 @@ export default {
{
"type": "Punctuator",
"value": "(",
"start": 24,
"end": 25,
"loc": {
"start": {
"line": 1,
Expand All @@ -185,8 +167,6 @@ export default {
{
"type": "Punctuator",
"value": ")",
"start": 25,
"end": 26,
"loc": {
"start": {
"line": 1,
Expand All @@ -205,8 +185,6 @@ export default {
{
"type": "Punctuator",
"value": "{",
"start": 26,
"end": 27,
"loc": {
"start": {
"line": 1,
Expand All @@ -225,8 +203,6 @@ export default {
{
"type": "Punctuator",
"value": "}",
"start": 27,
"end": 28,
"loc": {
"start": {
"line": 1,
Expand All @@ -245,8 +221,6 @@ export default {
{
"type": "Punctuator",
"value": ")",
"start": 28,
"end": 29,
"loc": {
"start": {
"line": 1,
Expand All @@ -265,8 +239,6 @@ export default {
{
"type": "Punctuator",
"value": ";",
"start": 29,
"end": 30,
"loc": {
"start": {
"line": 1,
Expand All @@ -283,4 +255,4 @@ export default {
]
}
]
};
};
Expand Up @@ -147,7 +147,7 @@ export default {
]
},
{
"type": "Keyword",
"type": "Identifier",
"value": "default",
"loc": {
"start": {
Expand Down
Expand Up @@ -183,7 +183,7 @@ export default {
]
},
{
"type": "Keyword",
"type": "Identifier",
"value": "default",
"loc": {
"start": {
Expand Down
Expand Up @@ -236,7 +236,7 @@ export default {
]
},
{
"type": "Keyword",
"type": "Identifier",
"value": "default",
"loc": {
"start": {
Expand Down

0 comments on commit 8f9f2fa

Please sign in to comment.