* Test runner: Detect extra property in 'actual' but not in 'expected'. Also update all expected.json where this would result in errors. * Include rmExpected.js script in case it is needed again
711 lines
18 KiB
JSON
711 lines
18 KiB
JSON
{
|
|
"type": "File",
|
|
"start": 0,
|
|
"end": 257,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 45,
|
|
"column": 1
|
|
}
|
|
},
|
|
"program": {
|
|
"type": "Program",
|
|
"start": 0,
|
|
"end": 257,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 45,
|
|
"column": 1
|
|
}
|
|
},
|
|
"sourceType": "script",
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"start": 0,
|
|
"end": 257,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 45,
|
|
"column": 1
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 6,
|
|
"end": 7,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 7
|
|
},
|
|
"identifierName": "A"
|
|
},
|
|
"name": "A"
|
|
},
|
|
"superClass": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start": 8,
|
|
"end": 257,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 45,
|
|
"column": 1
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 12,
|
|
"end": 23,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 7
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 12,
|
|
"end": 15,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 5
|
|
},
|
|
"identifierName": "get"
|
|
},
|
|
"name": "get"
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 21,
|
|
"end": 23,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 7
|
|
}
|
|
},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 27,
|
|
"end": 38,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 7
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 27,
|
|
"end": 30,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 5
|
|
},
|
|
"identifierName": "set"
|
|
},
|
|
"name": "set"
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 36,
|
|
"end": 38,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 7
|
|
}
|
|
},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 42,
|
|
"end": 56,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 9,
|
|
"column": 7
|
|
}
|
|
},
|
|
"static": false,
|
|
"kind": "method",
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 42,
|
|
"end": 48,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 8
|
|
},
|
|
"identifierName": "static"
|
|
},
|
|
"name": "static"
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 54,
|
|
"end": 56,
|
|
"loc": {
|
|
"start": {
|
|
"line": 9,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 9,
|
|
"column": 7
|
|
}
|
|
},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 60,
|
|
"end": 73,
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 7
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 60,
|
|
"end": 65,
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 7
|
|
},
|
|
"identifierName": "async"
|
|
},
|
|
"name": "async"
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 71,
|
|
"end": 73,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 7
|
|
}
|
|
},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 78,
|
|
"end": 98,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 7
|
|
}
|
|
},
|
|
"static": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 87,
|
|
"end": 90,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 5
|
|
},
|
|
"identifierName": "get"
|
|
},
|
|
"name": "get"
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 96,
|
|
"end": 98,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 7
|
|
}
|
|
},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 102,
|
|
"end": 122,
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 21,
|
|
"column": 7
|
|
}
|
|
},
|
|
"static": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 111,
|
|
"end": 114,
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 20,
|
|
"column": 5
|
|
},
|
|
"identifierName": "set"
|
|
},
|
|
"name": "set"
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 120,
|
|
"end": 122,
|
|
"loc": {
|
|
"start": {
|
|
"line": 21,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 21,
|
|
"column": 7
|
|
}
|
|
},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 126,
|
|
"end": 149,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 7
|
|
}
|
|
},
|
|
"static": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 135,
|
|
"end": 141,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 8
|
|
},
|
|
"identifierName": "static"
|
|
},
|
|
"name": "static"
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 147,
|
|
"end": 149,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 7
|
|
}
|
|
},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 153,
|
|
"end": 175,
|
|
"loc": {
|
|
"start": {
|
|
"line": 27,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 29,
|
|
"column": 7
|
|
}
|
|
},
|
|
"static": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 162,
|
|
"end": 167,
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 7
|
|
},
|
|
"identifierName": "async"
|
|
},
|
|
"name": "async"
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 173,
|
|
"end": 175,
|
|
"loc": {
|
|
"start": {
|
|
"line": 29,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 29,
|
|
"column": 7
|
|
}
|
|
},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 179,
|
|
"end": 197,
|
|
"loc": {
|
|
"start": {
|
|
"line": 31,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 7
|
|
}
|
|
},
|
|
"static": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 188,
|
|
"end": 189,
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 3
|
|
},
|
|
"identifierName": "a"
|
|
},
|
|
"name": "a"
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 195,
|
|
"end": 197,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 7
|
|
}
|
|
},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 202,
|
|
"end": 221,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 7
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 208,
|
|
"end": 213,
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 7
|
|
},
|
|
"identifierName": "async"
|
|
},
|
|
"name": "async"
|
|
},
|
|
"kind": "get",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 219,
|
|
"end": 221,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 7
|
|
}
|
|
},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 226,
|
|
"end": 255,
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 7
|
|
}
|
|
},
|
|
"static": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 241,
|
|
"end": 247,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 8
|
|
},
|
|
"identifierName": "static"
|
|
},
|
|
"name": "static"
|
|
},
|
|
"kind": "get",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 253,
|
|
"end": 255,
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 7
|
|
}
|
|
},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |